RadGrid Edit Modes

2 posts, 0 answers
  1. William
    William avatar
    3 posts
    Member since:
    Nov 2019

    Posted 13 Nov 2019 Link to this post

    I cannot find a example of this, but is there a way to distinguish between edit mode types such as "Insert","Update"? I have the button for inserting and updating already configured to switch between the modes. 
  2. Eyup
    Admin
    Eyup avatar
    3892 posts

    Posted 18 Nov 2019 Link to this post

    Hello William,

     

    Yes, this is possible. You can either use the approach demonstrated in this dedicated article:
    https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/distinguish-edit-or-insert-mode

    As demonstrated here:
    https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

    Or just the if(e.Item is IGridInsertItem) statement as an alternative.

    I hope this will prove helpful. Let me know if I can assist with anything else.

     

    Regards,
    Eyup
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top