Grid Update,Insert

5 posts, 0 answers
  1. pradeep k
    pradeep k avatar
    42 posts
    Member since:
    Nov 2009

    Posted 24 Nov 2009 Link to this post

    Hi All,

    I am doing Insert, Update in RadGrid at server side, and working fine, but i am not able to change edit mode to normal mode after update is complete.

    How to change edit mode after update complete in RadGrid1_UpdateCommand event.

    Please help me regarding this.


  2. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 24 Nov 2009 Link to this post

    Try this:

    grv.EditIndexes.Clear(); 

    This will clear edit mode from all rows.


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Nov 2009 Link to this post

    Hello Pradeep,

    The edit form should close automatically after a successful update/insert. Can you make sure that you have not set the AllowAutomaticUpdates/AllowAutomaticInserts property of the grid to true? If yes, set these properties to False. Since you are manually updating/inserting into your grid, setting the Automatic operations will prevent the edit form from closing.

       If this is not the case, then the code provided by Roland should help.

    Thanks,
    Princy
  5. pradeep k
    pradeep k avatar
    42 posts
    Member since:
    Nov 2009

    Posted 25 Nov 2009 Link to this post

    Thank you for the reply,

    I changed AllowAutomaticUpdates/AllowAutomaticInserts property of the grid to false, and is worked.


  6. J
    J avatar
    143 posts
    Member since:
    Jun 2006

    Posted 17 Mar 2010 Link to this post

    Thanks Pradeep, your comment helped me.  Forgot to turn off all those 'allowautomatic' properties.

    J
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017