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

Select row on paged grid

1 Answer 5 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 06 Oct 2014, 05:49 PM
I would like to select a record in a paged grid.  The code works fine if the URL value is on the first set of the paged items but not if its on any of the paged data.  (I would like to pass thru a value and then have the grid select the value on the specific page of the data set).


foreach (GridDataItem item in RelatedContactsGrid.MasterTableView.Items)
                {
                    if (item.GetDataKeyValue("ContactTyparID").ToString() == ContactId.ToString())
                    {
                        item.Selected = true;
                    }
                }

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 09 Oct 2014, 10:47 AM
Hello Bradley,

I'm sending two sample RadGrid web sites to demonstrate how you can handle similar requirements. Please run the attached applications and let me know if they help you.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Bradley
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or