Asiaapollo Posted February 22, 2013 Share Posted February 22, 2013 Hi Farshad, Is it possible to add the config option Ext.grid.View.preserveScrollOnRefresh as unDBGrid's property? Thanks Lewis Link to comment Share on other sites More sharing options...
TobiS Posted October 11, 2019 Share Posted October 11, 2019 I would like to know the same here since that would solve a current problem. Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2019 Share 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? Link to comment Share on other sites More sharing options...
TobiS Posted October 14, 2019 Share 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. Link to comment Share on other sites More sharing options...
Sherzod Posted October 14, 2019 Share 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? Link to comment Share on other sites More sharing options...
TobiS Posted October 14, 2019 Share Posted October 14, 2019 i try to make a simple one Link to comment Share on other sites More sharing options...
TobiS Posted October 14, 2019 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now