I am now solving problem based on scrolling to previous visible items after source collection update when is used grouping. No grouping, no problem. But how to get first visible item, when some groups can be expanded, some collapsed etc.? This thread helped me a lot, but I need a little more help to get full functionality I need.
Thanks
8 Answers, 1 is accepted
What difficulties have you encountered in your scenario implementation. How can we help further on the matter?
Looking forward to hearing from you!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
thanks for reply. I need to scroll back to last visible rows in grid after update. If you look at attached file, you can see an example of what I need - scroll back to this rows, after update of source collection (interval 1 - 2 seconds).
There can be 3 scenarios:
- No grouping
- Grouping activated, all groups collapsed / expanded
- Grouping activated, some groups collapsed / expanded
I need to be able to scroll back to previously visible rows after each update in all cases.
Regards,
Petr
Probably the best to do it is to cache the visible items, and later on invoke the ScrollIntoViewMethods of the GridView. Lets say that you always need the first visible item to be in view after grouping. You need to call the ScrollIntoView method with that Item as parameter on the grouped event.
Let me know if I can help you further with this!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I noticed strange behavior... Scrolling works, but it always expand the group in which is that item without firing any event. And after each refresh it jumps a few rows up, till to the first row. Do you have any idea about different way how to scroll back to last visible rows (groups)?
Regards,
Petr
Unfortunately this is the only way you can achieve the behavior you are looking for.
We are sorry for the inconvenience caused!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
and is there any chance it will be possible in some next build to scroll to last visible groups after refresh without any side effects? :)
Regards,
Petr
We will definitely put that on our to do list, however we cannot commit to a certain time frame of when this will be available. You can check the Release notes after our releases to keep track.
Again, we are sorry for the inconvenience caused!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
thanks for reply, looking forward to new builds.
Sincerely,
Petr