Jump to content

How to scroll to selected record in unimDBListgrid in code?


Stemon63

Recommended Posts

  • 8 months later...
  • 1 year later...
UnimDBListGrid1.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelections()[0])}, 200);');
 

What is represented by 0 & 200.

Is 0 indicate start of row & 200 indicate max or last row in  grid ?

Link to comment
Share on other sites

9 hours ago, ajp68 said:

What is represented by 0 & 200.

Is 0 indicate start of row & 200 indicate max or last row in  grid ?

Hello,

The function defer is used to delay a function (Ext.defer)
In our case:
200 is milliseconds.
0 - the first selected item (passed as an argument to the ensureVisible function)

Link to comment
Share on other sites

  • 2 weeks later...
On 7/4/2020 at 12:51 PM, Sherzod said:

Hello,

The function defer is used to delay a function (Ext.defer)
In our case:
200 is milliseconds.
0 - the first selected item (passed as an argument to the ensureVisible function)

Thanks for your Guidance. 

Link to comment
Share on other sites

×
×
  • Create New...