Unplanned
Last Updated: 28 Jul 2023 07:27 by ADMIN
Ramon
Created on: 06 Sep 2019 10:11
Category: Grid
Type: Feature Request
24
Batch editing

The need is to update, add or delete a lot of items at once (for example, the selected items). Sample of batch editing: https://demos.telerik.com/kendo-ui/grid/editing.

Perhaps this may become possible through methods on the grid that invoke the CUD operations.

---

ADMIN EDIT

There is a sample project that accomplishes most of these goals: https://github.com/telerik/blazor-ui/tree/master/grid/batch-editing

The grid state offers a great deal of flexibility in terms of controlling the grid, up to putting it in edit/insert mode.

---

6 comments
ADMIN
Nadezhda Tacheva
Posted on: 28 Jul 2023 07:27

Hi Kanak,

By design of the Grid, the developer has to pass data to it either through the Data parameter or through the OnRead event. That said, you should be able to access that data from outside of the Grid as well since you are the one who provides this source to the component.

Can you please share some more details on the specific use case and the exact problem you are facing? The approach may be different depending on the Grid configuration and data binding. My advice is to open a dedicated support ticket on the matter where you can list these details and share an isolated sample that replicates your current implementation.

For that purpose, you can use the REPL tool to generate a snippet in the browser or the Create New Project Wizard to create a sample app that you can attach to your post.

This will help us better understand your use case in order to assist further. Thank you in advance!

Regards,
Nadezhda Tacheva
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Kanak
Posted on: 21 Jul 2023 10:42
Can we access a Telerik Blazor Data from a button outside grid control? If yes how.
Keith
Posted on: 11 Dec 2019 15:42

Marion, 

Thank you for your response. I will take a look at the method you suggested.

Thanks again.

ADMIN
Marin Bratanov
Posted on: 11 Dec 2019 15:15

Hello Keith,

Thank you for sharing your feedback. Indeed, this is the way it works, because the newly inserted row is not exposed anywhere until its Save button is clicked. There simply isn't an event you can have to get that data item, and then when some other action fires the data source of the grid is not updated with this new row and it is gone. At this stage, the only way this can be circumvented is if the Add button is actually a custom button that invokes a custom edit form (for example, like this one), so you can use its own events to add the new row to the data and to have a reference to this row even if the user does something else. If you like such an experience, feel free to open a pull request with an adjacent sample that implements it and I'll gladly merge it (make sure to add an attribution to yourself in the readme file!).

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Keith
Posted on: 11 Dec 2019 14:09

What Marin posted looks fantastic!!!!!! I only found one problem/quirk, when you add a new employee you have to click the save at the end of the line, then you have to click save all changes for it to truly save. If you add an employee, then click on another row to edit that employee the added one disappears.  Currently in the Asp.net Ajax grid batch editing I use for a time sheet application, this is not the case. If a user adds a new row, they are either able to click the save all changes button to save it or edit more rows without losing the added row. Besides that, awesome work!

ADMIN
Marin Bratanov
Posted on: 17 Oct 2019 08:48

Hi all,

Here's a sample we made that showcases how you can implement batch editing with the current API: https://github.com/telerik/blazor-ui/tree/master/grid/batch-editing. If it does not suffice, post a comment here to let us know what else you would expect a built-in feature to provide.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor