This is a migrated thread and some comments may be shown as answers.

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

3 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ken
Top achievements
Rank 1
Ken asked on 13 Jan 2012, 10:54 PM
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.

3 Answers, 1 is accepted

Sort by
0
Ken
Top achievements
Rank 1
answered on 17 Jan 2012, 05:53 PM
Bump, any help here?
0
Pavel Pavlov
Telerik team
answered on 18 Jan 2012, 04:52 PM
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 >>

0
Ken
Top achievements
Rank 1
answered on 18 Jan 2012, 05:26 PM
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?
Tags
GridView
Asked by
Ken
Top achievements
Rank 1
Answers by
Ken
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or