petr.nehez Posted August 14, 2012 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
Administrators Farshad Mohajeri Posted August 17, 2012 Administrators 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
sagt3k Posted September 3, 2012 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
Mediv Posted September 4, 2012 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
bruno-pere Posted February 25, 2013 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
aln02 Posted February 26, 2013 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
bruno-pere Posted February 26, 2013 Posted February 26, 2013 Oleg, thank you!!!!!!!!!!!!!!!! It works now. I tried so many commands. Bruno Quote
webdev Posted June 11, 2018 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
Sherzod Posted June 11, 2018 Posted June 11, 2018 Hi, Can you please explain in more details, what problem do you have ?! Quote
webdev Posted June 11, 2018 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
Sherzod Posted June 12, 2018 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
webdev Posted July 9, 2018 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
Administrators Farshad Mohajeri Posted July 10, 2018 Administrators Posted July 10, 2018 Confirmed. I will try to find a fix. Quote
Administrators Farshad Mohajeri Posted July 23, 2018 Administrators Posted July 23, 2018 Fixed. Quote
milanius Posted June 23, 2019 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
Serg Posted July 4, 2019 Posted July 4, 2019 On 7/23/2018 at 3:19 PM, Farshad Mohajeri said: Fixed. Quote
Sherzod Posted July 4, 2019 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
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.