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

Radgrid batch editing manual trigger

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
h
Top achievements
Rank 1
h asked on 04 Feb 2020, 05:13 PM

Hello,

 

We have two grids which are parent and child. So one selection of the row in the parent grid gets the corresponding rows for the child grid. 

So having the inline editing enabled using the click of double click doesn't seem to work since the autopostback will turn off the inline editing.

So the solution that we came up for this issue is to have a button in the row of each record that triggers inline editing. 

Is that possible?

 

We also have implemented a page level save or cancel buttons so is it possible to remove the Save, delete cancel changes buttons on the grid?

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 07 Feb 2020, 02:10 PM

Hi,

Yes, it can be achieved. Place a button in a cell and attach the click event handler to that. When the button is clicked, open the current row or cell for editing using the Batch Editing Client-side API.

It is worth checking out the Category: Traversing article describing a lot of useful methods, more specifically the .closest() method. This will help you find the current row from the button's click event.

Although you must know that the Batch Editing is a Client-Side functionality of the Grid, a PostBack can interrupt it. So if using this edit mode, I suggest that you try avoiding PostBacks and make AJAX requests instead, they will not reload the entire page nor interrupt client-side code.

Check out the ajaxRequest(arguments) and ajaxRequestWithTarget(eventTarget, eventArgument) articles for more information.

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
Grid
Asked by
h
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or