How to get first visible row after grouping

9 posts, 1 answers
  1. Petr
    Petr avatar
    6 posts
    Member since:
    Oct 2012

    Posted 21 Feb 2013 Link to this post

    Hello,

    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
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 22 Feb 2013 Link to this post

    Hello Petr,

    What difficulties have you encountered in your scenario implementation. How can we help further on the matter? 

    Looking forward to hearing from you! 

    Regards,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Petr
    Petr avatar
    6 posts
    Member since:
    Oct 2012

    Posted 24 Feb 2013 Link to this post

    Hello Nik,

    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:
    1. No grouping
    2. Grouping activated, all groups collapsed / expanded
    3. 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
  4. Nick
    Admin
    Nick avatar
    593 posts

    Posted 27 Feb 2013 Link to this post

    Hello 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! 

    All the best,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Petr
    Petr avatar
    6 posts
    Member since:
    Oct 2012

    Posted 01 Mar 2013 Link to this post

    Hello Nik,

    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
  6. Nick
    Admin
    Nick avatar
    593 posts

    Posted 06 Mar 2013 Link to this post

    Hi Petr,

    Unfortunately this is the only way you can achieve the behavior you are looking for. 

    We are sorry for the inconvenience caused! 

    All the best,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Petr
    Petr avatar
    6 posts
    Member since:
    Oct 2012

    Posted 07 Mar 2013 Link to this post

    Hello Nik,

    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
  8. Answer
    Nick
    Admin
    Nick avatar
    593 posts

    Posted 07 Mar 2013 Link to this post

    Hi 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!  

    Greetings,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  9. Petr
    Petr avatar
    6 posts
    Member since:
    Oct 2012

    Posted 07 Mar 2013 Link to this post

    Hello Nik,

    thanks for reply, looking forward to new builds.

    Sincerely,
    Petr
Back to Top