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

Batch Edit Issue - No need to pass all grid columns as parameters

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Benson Group
Top achievements
Rank 1
Benson Group asked on 11 Apr 2014, 08:07 PM
Hello:
I am using the batch edit demo here as my starting point https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx
I noticed it uses allowautomaticinserts/updates/deletes

Before purchasing radgrid, I was used to writing my stored procedures to accept only my required parameters, not every single one.
is there a way to get batch editing to work with code behind, calling a command (updateAll) and passing my parameters manually?

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 16 Apr 2014, 02:13 PM
Hi,

Indeed you can create and execute an update query in the code-behind according to your needs. For that purpose you can subscribe to the OnBatchEditCommand event of the grid and extract the changes which the user had made from the event arguments. An example on how to achieve this is available here.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Benson Group
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or