Stemon63 Posted July 20, 2018 Posted July 20, 2018 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!
molla2005b Posted April 20, 2019 Posted April 20, 2019 hi Have you reached a solution? Thanks in advance!
Sherzod Posted April 20, 2019 Posted April 20, 2019 2 hours ago, molla2005b said: Have you reached a solution? What is the problem? Can you make a simple testcase for this?
molla2005b Posted April 20, 2019 Posted April 20, 2019 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
Sherzod Posted April 20, 2019 Posted April 20, 2019 52 minutes ago, molla2005b said: I want to scroll to last record At what moment? Please explain
Sherzod Posted April 20, 2019 Posted April 20, 2019 ... UnimDBListGrid1.DataSource.DataSet.Last; UnimDBListGrid1.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelections()[0])}, 200);'); ... 1
ajp68 Posted July 3, 2020 Posted July 3, 2020 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 ?
Sherzod Posted July 4, 2020 Posted July 4, 2020 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)
ajp68 Posted July 15, 2020 Posted July 15, 2020 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.
Recommended Posts