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

EnsureVisible functionality

1 Answer 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
EM
Top achievements
Rank 1
EM asked on 07 Apr 2009, 07:24 PM
All,

I have a grid displaying items using the built in paging and sorting capability - the grid can hold more than 1,000 items in some cases.

When a new item is added to the data set via an external action (for example, a popup dialog followed by a save action - not using the grid's edit feature), the grid is set to refresh (rebind) to the data source, which now contains the new row.

The new row is not always displayed by the grid depending on the CurrentPageIndex and sort order.  This makes it difficult the the user to locate the new row.

Is there a mechanism to programmatically tell the grid to paginate to the appropriate row so the page where the row happens to be located based on current sort setup is displayed?  In other controls this is equivalent to an EnsureVisible(key) method.

Regards,

Etienne

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Apr 2009, 04:04 AM
Hello Etienne,

You can refer to the following code library submisssion which illustrates on how to select the last inserted row in the RadGrid.
Select Last Inserted Row in the RadGrid with both Paging and Sorting enabled

Thanks
Princy.
Tags
Grid
Asked by
EM
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or