Jump to content

Recommended Posts

Posted

Hello,

 

I'm trying to save the order and the width of the fields in a grid to a database.

When I change the width of fields in web mode, when iterating through the columns, the correct width is returned.

But when changing the field order in the grid, the order is not reflected when iterating through the columns.

Is this a bug or am i missing something?

 

Thx,

Bernaert Dominique

  • Administrators
Posted

Yes, I drag them and I have a save button where I loop the columns.

 

Changing column order by dragging them in browser generates an event but this event isn't handled in uniGUI yet, so server doesn't know that order has changed.

 

Workaround is to handle client side event on server side yourself .

 

function OnColumnmove(oldIndex, newIndex)
{
 ajaxRequest(this, 'columnMove', ['a='+oldIndex, 'b='+newIndex]);
}

 

Logged #1315

  • 5 years later...
Posted

Hi Mr. Farshad ,I

 Cant find the  OncolumnMove Event in the  UniDBGid, I've just instaled the version 1424 and I cant see the event in the event lists of the properties of object Inspector.

I'm I doing something wrong ?

 

Regards

  • Administrators
Posted

Hi Mr. Farshad ,I

 Cant find the  OncolumnMove Event in the  UniDBGid, I've just instaled the version 1424 and I cant see the event in the event lists of the properties of object Inspector.

I'm I doing something wrong ?

 

Regards

 

You are correct. OnColumnMove is not published. However it works internally and correct index is set for all columns after you move columns around.

  • Administrators
Posted

Login incorrect

 

Support portal uses a separate database. In future we may migrate our customer database automatically, but for now you need to create a new account using your registered email address . You can also send a mail to support@fmsoft.net and an account will be created.

×
×
  • Create New...