Asiaapollo Posted February 22, 2013 Posted February 22, 2013 Hi Farshad, Is it possible to add the config option Ext.grid.View.preserveScrollOnRefresh as unDBGrid's property? Thanks Lewis Quote
TobiS Posted October 11, 2019 Posted October 11, 2019 I would like to know the same here since that would solve a current problem. Quote
Sherzod Posted October 11, 2019 Posted October 11, 2019 2 hours ago, TobiS said: I would like to know the same here since that would solve a current problem. Hello, What is your current problem? Quote
TobiS Posted October 14, 2019 Posted October 14, 2019 the problem is quite simple. I have a Grid with lots of rows. Whenever the scrollbar is not on the very top and i change a datarow over another mask (connected to the same datasource) the grid refreshes like it should which is good, but the scrollbar does not maintain its state. even if i select the edited row again the row is at best the last visible row. In the end this is getting to be confusing for the user since he is expecting the row in the same line and position of the screen where he found it before. Quote
Sherzod Posted October 14, 2019 Posted October 14, 2019 18 minutes ago, TobiS said: the problem is quite simple. I have a Grid with lots of rows. Whenever the scrollbar is not on the very top and i change a datarow over another mask (connected to the same datasource) the grid refreshes like it should which is good, but the scrollbar does not maintain its state. even if i select the edited row again the row is at best the last visible row. In the end this is getting to be confusing for the user since he is expecting the row in the same line and position of the screen where he found it before. Can you make a simple testcase for reproduce this issue? Quote
TobiS Posted October 14, 2019 Posted October 14, 2019 i think i found why the grid is comlpetly refreshing. Since i save the changes to a database the grid does a full refresh and the cursor for the scrollbar resets. If i only bind it to a temporary Datatable it does only show the changes without reloading everything. is there a way not to reload the full grid? Alright i found the problem. I edit a value of the dataset after the database did the save. The value is not in the grid visible since its not relevant. After that the grid does a complete reload and the scrollbar resets with it. 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.