Keeping selected row constantly in view, despite updates. However, still allowing user to scroll away from selection

4 posts, 0 answers
  1. Ken
    Ken avatar
    3 posts
    Member since:
    Mar 2011

    Posted 13 Jan 2012 Link to this post

    We are currently implementing the grid into our silverlight application, and have stumbled on a function we can't seem to quite enable.  Our grid has new rows added around every 1 to 5 seconds, 99.999% of the time the grid is sorted in such a way that all new rows are added to the top of the grid.  So as new rows come in, the previous rows disappear towards the bottom of the grid.  

    While the grid is having new rows added, our users may select a visible row.  Feature 1 is that the row they select must remain in view, despite new rows being added above the selection.  In other words, the grid needs to automatically scroll to keep the selected row in view.  I understand this can be accomplished by calling ScrollIntoViewAsync after each update - HOWEVER - this leads to two issues:

    1. ScrollIntoViewAsync puts the selected row at the bottom of the screen during updates.  I need the selected row to be at the top of the screen when its brought into view.

    2. Attemping to use the scroll bar to return to the top of the results (and hence, the newest rows coming in), snaps the user back to the selected row.  

    Ideally, the user should be able to scroll (using the vertical scroll bar) away from the row they have selected and return back to the top of the grid.  However, I can't find a feature/method for accomplishing this.  A competitors grid has this feature and I would really not want to go back to them if someone can give me a fix.
  2. Ken
    Ken avatar
    3 posts
    Member since:
    Mar 2011

    Posted 17 Jan 2012 Link to this post

    Bump, any help here?
  3. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 18 Jan 2012 Link to this post

    Hello Ken ,

    Maybe you can use the approach demonstrated in this blogpost ?

    All the best,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  4. Ken
    Ken avatar
    3 posts
    Member since:
    Mar 2011

    Posted 18 Jan 2012 Link to this post

    Pavel,

    I'm not sure how frozen rows are going to help.  I need the desired functionality (as described).  Do you have any other suggestions?
Back to Top