petr.nehez Posted August 14, 2012 Share Posted August 14, 2012 I would like to scroll the grid when a new record is created and this record is active. Is there a way how to do it? If I locate the record and refresh the grid, the selection is on the right record but the scrollbar is on the top... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 17, 2012 Administrators Share Posted August 17, 2012 here is the workaround which you need to implement in JS code. http://www.sencha.com/forum/showthread.php?59504-Grid-scroll-to-view-selected-row Quote Link to comment Share on other sites More sharing options...
sagt3k Posted September 3, 2012 Share Posted September 3, 2012 We may have an example implementation?, I have the same problem when I use the commands ADO.next, ADO.last, ADO.prior, etc. Quote Link to comment Share on other sites More sharing options...
Mediv Posted September 4, 2012 Share Posted September 4, 2012 here is the workaround which you need to implement in JS code. http://www.sencha.com/forum/showthread.php?59504-Grid-scroll-to-view-selected-row Hi Farhad, tell me what ClientsEvent can be used on the grid, to avoid this situation. Thank you. Quote Link to comment Share on other sites More sharing options...
bruno-pere Posted February 25, 2013 Share Posted February 25, 2013 Anyone found a solution to force the grid to show the selected record? Using version 0.91.0.984. I tried: MyFrame.myGrid.getView().focusRow(number); MyFrame.myGrid.getView().getSelectionModel().select(number); MyFrame.myGrid.getView().highlightItem(number); scrollToView() too. Nothing works. Thx! Bruno Quote Link to comment Share on other sites More sharing options...
aln02 Posted February 26, 2013 Share Posted February 26, 2013 Maybe it will help: if unidbgrid.WebOptions.Paged thenUniSession.AddJS('setTimeout(function () {'+ 'MainForm.unidbgrid.getView().focusRow('+IntToStr((unidbgrid.datasource.dataset.RecNo mod unidbgrid.WebOptions.PageSize)-1)+');'+ '}, 100);')elseUniSession.AddJS('setTimeout(function () {'+ 'MainForm.unidbgrid.getView().focusRow('+IntToStr(unidbgrid.datasource.dataset.RecNo-1)+');'+ '}, 100);'); It works for me)) 1 Quote Link to comment Share on other sites More sharing options...
bruno-pere Posted February 26, 2013 Share Posted February 26, 2013 Oleg, thank you!!!!!!!!!!!!!!!! It works now. I tried so many commands. Bruno Quote Link to comment Share on other sites More sharing options...
aln02 Posted February 26, 2013 Share Posted February 26, 2013 glad to help Quote Link to comment Share on other sites More sharing options...
webdev Posted June 11, 2018 Share Posted June 11, 2018 Hi. I'm trying this solution using the version FMSoft_uniGUI_Complete_Professional_1.10.0.1464. But don't work. Help? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2018 Share Posted June 11, 2018 Hi, Can you please explain in more details, what problem do you have ?! Quote Link to comment Share on other sites More sharing options...
webdev Posted June 11, 2018 Share Posted June 11, 2018 Hi. I'm using unidbgrid with many records. When locating the record does not scroll until the record in uniDBGrid. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2018 Share Posted June 12, 2018 Hi, When locating the record does not scroll until the record in uniDBGrid. I couldn't reproduce. How can we reproduce this, can you make a simple testcase for this ?! Quote Link to comment Share on other sites More sharing options...
webdev Posted July 9, 2018 Share Posted July 9, 2018 Hi. Sorry I'm late. I could simulate the problem. The bug has to do with the amount of records. Follow test. Test.zip Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 10, 2018 Administrators Share Posted July 10, 2018 Confirmed. I will try to find a fix. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 23, 2018 Administrators Share Posted July 23, 2018 Fixed. Quote Link to comment Share on other sites More sharing options...
milanius Posted June 23, 2019 Share Posted June 23, 2019 On 7/10/2018 at 9:35 AM, Farshad Mohajeri said: Hi, is any working solution for TUnimDBGrid? I need scroll to inserted row and nothing works Thanks... Quote Link to comment Share on other sites More sharing options...
Serg Posted July 4, 2019 Share Posted July 4, 2019 On 7/23/2018 at 3:19 PM, Farshad Mohajeri said: Fixed. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2019 Share Posted July 4, 2019 14 minutes ago, Serg said: But don't work. For ADO Hi, Again problems with ADO? How can we reproduce this issue?! Quote Link to comment Share on other sites More sharing options...
Serg Posted July 4, 2019 Share Posted July 4, 2019 Я собрал все заново и все работает! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2019 Share Posted July 4, 2019 OK, thanks Quote Link to comment Share on other sites More sharing options...
Serg Posted July 4, 2019 Share Posted July 4, 2019 DontShowSelected )))) Quote Link to comment Share on other sites More sharing options...
Serg Posted July 4, 2019 Share Posted July 4, 2019 Спасибо!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.