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

Radgrid with GridTextBoxColumnEditor problem on sorting

2 Answers 47 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 01 Nov 2010, 12:25 PM
Hi,

    I have a Radgrid with GridTextBoxColumnEditor.I have a GridBoundColumn with ColumnEditorID ="GridTextBoxColumnEditor1".
    On page load I get the grid with edit mode apperance.But after sorting Edit facility will be disappeared.How can I solve this problem?

2 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 03 Nov 2010, 08:40 AM
Hello Dayana Maliyakal,

After sorting you have to put all items back in edit mode and rebind the grid thus it will retain the edit mode apperance. You may put the following code after the sorting command is executed or in the page_prerender event:
 
protected void Page_PreRender(object sender, EventArgs e)
       {
           for (int i = 0; i < RadGrid1.PageSize; i++)
           {
               RadGrid1.EditIndexes.Add(i);
           }
           RadGrid1.Rebind();
       }

Also for more information please refer to the following help article.

Let me know how this works for you and if you have any other questions.

Best wishes,
Marin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dayana Maliyakal
Top achievements
Rank 1
answered on 03 Nov 2010, 08:59 AM
Thank you for your reply.
Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Answers by
Marin
Telerik team
Dayana Maliyakal
Top achievements
Rank 1
Share this question
or