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

RadGrid Edit Modes

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 14 Nov 2019, 12:46 AM
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. 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Nov 2019, 07:08 AM

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.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or