Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Stemon63

How to scroll to selected record in unimDBListgrid in code?

Recommended Posts

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!

 

Share this post


Link to post
Share on other sites
2 hours ago, molla2005b said:

Have you reached a solution?

What is the problem?

Can you make a simple testcase for this?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
52 minutes ago, molla2005b said:

I want to scroll to last record

At what moment? Please explain

Share this post


Link to post
Share on other sites
  ...
  UnimDBListGrid1.DataSource.DataSet.Last;
  UnimDBListGrid1.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelections()[0])}, 200);');
  ...

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×