Hi!
Is it possible to have pop-up or edit form show up when adding new records to the grid or when "edit" button is clicked, but still have some cells "editable" in a batch edit mode fashion?
I was thinking of switching edit mode from code behind, when "Add" or "Edit" buttons are clicked, but when "batch" mode is enabled, there's no callback. Any ideas?
Thanks!
Andy
5 Answers, 1 is accepted
0
Andy
Top achievements
Rank 1
answered on 04 Mar 2016, 04:33 PM
Ok, I figured it out. The idea is to use custom buttons for init insert and update operations, and in code-behind handle item command event and switch edit modes and rebind the grid.
0
Hello Andy,
Instead of creating custom controls, you can intercept the commands using the OnUserAction or OnCommand event handlers:
http://www.telerik.com/forums/rad-grid-batch-editing-sorting-issue#VDXmbb_kc06zlMJgTeXbGg
And fire your own custom command and change the mode depending on your specific preferences:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/firecommand
Regards,
Eyup
Telerik
Instead of creating custom controls, you can intercept the commands using the OnUserAction or OnCommand event handlers:
http://www.telerik.com/forums/rad-grid-batch-editing-sorting-issue#VDXmbb_kc06zlMJgTeXbGg
And fire your own custom command and change the mode depending on your specific preferences:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/firecommand
Regards,
Eyup
Telerik
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 Feedback Portal
and vote to affect the priority of the items
0
Andy
Top achievements
Rank 1
answered on 09 Mar 2016, 07:53 AM
Hello, Eyup
Thank you for reply. In fact that's not custom controls that I'm using, it's just asp linkbuttons with custom command names, instead of built-in buttons that radgrid generates to add and edit items. The rest is correct - I'm handling onCommand event of the the grid to switch modes.
Best,
Andy
0
Accepted
Hello Andy,
I'm glad the approach has proven viable for your scenario. Please note for future reference that Batch editing mode is different than other modes. You can find a detailed explanation in the following section:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-batch-edit-mode
Regards,
Eyup
Telerik
I'm glad the approach has proven viable for your scenario. Please note for future reference that Batch editing mode is different than other modes. You can find a detailed explanation in the following section:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-batch-edit-mode
Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Andy
Top achievements
Rank 1
answered on 15 Mar 2016, 01:34 PM
Hi Eyup,
Thanks for your help!