Exit Insert/Edit Mode in the Grid

4 posts, 0 answers
  1. Edward
    Edward avatar
    20 posts
    Member since:
    Mar 2009

    Posted 26 Mar 2009 Link to this post

    I am using a web control to edit a grid row.  After a successfull update or insert how do I cause the grid to exit edit/insert mode?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Mar 2009 Link to this post

    Hi Edward,

    Try the following code snippet to achieve the desired scenario.

    a) To close the edit form:
        
     
    RadGrid1.EditIndexes.Clear(); 

    b) To close the Insert form:
     
       RadGrid1.MasterTableView.IsItemInserted = false

    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Edward
    Edward avatar
    20 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2009 Link to this post

    Thanks the insert happens but now it is throwing an exception
    "Insert item is available only when grid is in insert mode"


    Any thoughts?
  5. Edward
    Edward avatar
    20 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2009 Link to this post

    Got it.

    http://www.telerik.com/community/forums/aspnet/grid/after-insert-the-edit-form-visible.aspx

    This thread helped.  Is there a forum or video that describes the architeecture of the grid in more detail?  Man Telerik has great controls but a very steep learning curve on the object model.
Back to Top