Radgrid with GridTextBoxColumnEditor problem on sorting

3 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 01 Nov 2010 Link to this post

    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. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 03 Nov 2010 Link to this post

    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
  3. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 03 Nov 2010 Link to this post

    Thank you for your reply.
Back to Top