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

Mixing batch edit mode with pop-up or edit form

5 Answers 280 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 03 Mar 2016, 05:46 PM

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

Sort by
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
Eyup
Telerik team
answered on 07 Mar 2016, 12:19 PM
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
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
Eyup
Telerik team
answered on 14 Mar 2016, 06:03 AM
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
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!

Tags
Grid
Asked by
Andy
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or