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

Telerik RadGrid SelectedValue returning NULL

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silver
Top achievements
Rank 1
Silver asked on 18 Sep 2012, 06:07 PM

I am using RadGrid along with asp.net Detailsview. After selecting an item in RadGrid and clicking a edit button in asp.net detailsview, radgrid's selectedvalue is becoming null.. How to fix this?

in my radgrid I have ClientSettings (AllowScroll, UseStaticHeaders, SaveScrollPosition set to True).

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Sep 2012, 06:49 PM
Hello,

You can set edit row in selected mode by using below code.

protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            foreach (GridEditableItem item in RadGrid1.EditItems)
            {
                item.Selected = true;
            }
        }


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Silver
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or