Hello
I have a problem. I can select one specific row in first page,so the color of this row will become orange for example.
when I change the page index , I can select row but the color of row will NOT become orange ,I don't know what should I do.
my grid is in Update panel.
can anybody help me?
below is my code :
I have a problem. I can select one specific row in first page,so the color of this row will become orange for example.
when I change the page index , I can select row but the color of row will NOT become orange ,I don't know what should I do.
my grid is in Update panel.
can anybody help me?
below is my code :
protected void grdAuthorization_PageIndexChanged(object sender, Telerik.Web.UI.GridPageChangedEventArgs e) { List<Entity.TimeSheetAuthorizationView1> list = (List<Entity.TimeSheetAuthorizationView1>)Session[ConstantStrings.AuthorizationList]; if (grdAuthorization.DataSource == null) { grdAuthorization.DataSource = list; grdAuthorization.DataBind(); } grdAuthorization.CurrentPageIndex = e.NewPageIndex; grdAuthorization.DataBind(); ViewState[ConstantStrings.SelectedAuthorizationId] = null; grdAuthorization.SelectedIndexes.Clear(); if (list != null && list.Count > default(int)) { grdAuthorization.SelectedIndexes.Add(default(int)); int id = (int)grdAuthorization.SelectedItems[0].OwnerTableView.DataKeyValues[grdAuthorization.SelectedItems[0].ItemIndex]["Id"]; ViewState[ConstantStrings.SelectedAuthorizationId] = id; } }