Jump to content

Recommended Posts

Posted

Hi, 

I need to show the selected record in unimDBlistgrid that is out of screen area, i need to scroll to view it.
How I can show it, scrolling in code?

Thanks in advance!

 

  • 8 months later...
Posted

I have using unimDBlistgrid  with template
I want to scroll to last record
I can't find a working solution yet.

my uni version is 1.0.0.1425 and i will renew soon

thanks in advance

Posted
  ...
  UnimDBListGrid1.DataSource.DataSet.Last;
  UnimDBListGrid1.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelections()[0])}, 200);');
  ...

 

  • Like 1
  • 1 year later...
Posted
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 ?

Posted
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)

  • 2 weeks later...
Posted
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. 

×
×
  • Create New...