Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Preselect 1 row in radgrid with paging

$
0
0

Hi,

I need to select 1 row in a radgrid ( a parameter is passed in url like myPage.aspx?ID=93 )

If the row to select is in the first page displayed of the radgrid, this is OK.

However, if the row to select is, for example, in the page 5, this don't work

I do so in PreRender:

        protected void Grid_Version_PreRender(object sender, EventArgs e)
        {
            if (!IsPostBack && SelectedRecetteVersion != null)
            {
                foreach (GridDataItem item in Grid_ArticleRecette.MasterTableView.Items)
                {
                    if (item.GetDataKeyValue("RecetteID").ToString() == myID)
                    {
                        item.Selected = true;
                    }
                }
            }

 

I need to display to good page with the row selected

 

Thanks for your help please

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>