Inline editing of heirarchical grid closing child nodes

1 Answer 107 Views
Editor Grid
perry
Top achievements
Rank 1
perry asked on 27 Oct 2022, 10:33 PM | edited on 28 Oct 2022, 05:27 PM

I have a hierarchical grid with inline Batch editing.    The grid start off with all child rows expanded (from the databound function).   When the user edits one of the child cells the parent grid closes all all child nodes and then the databound event fires and we expand all the rows.  Virtual Scrolling is also enabled.

function dataBound() {
var grid = this;
$(".k-master-row").each(function (index) {
grid.expandRow(this);
});

}

The problem is that the user loses focus to what row they were on since the grid closes and reopens all the nodes.

Is there an approach where the grid doesn't have the close all child nodes and reopen?   I've tried starting with all child nodes being closed, allowing the user to expand one child node and edit....but after the cell is edited the main grid closes all the child nodes .... I'd prefer the child node to be left expanded so the user isn't confused as what they just edited.

 

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 01 Nov 2022, 04:27 PM

Hi Perry,

I noticed that there is not a Telerik UI for ASP.NET Core license associated with your account which limits the availability of our support services for the product. In this regard, It is recommended that you either purchase or renew your license in order to gain access to the latest updates, fixes, features, and support regarding the Telerik UI for ASP.NET Core components. More information regarding the currently available plans can be reviewed here:

That being said, at present, the batch editing of the grid is available only for the InCell edit mode. This is due to the fact that the Update button for the inline edit will internally call the sync() method. Hence, after every update (even though batch is enabled) it will send only one item to the server.

Is there a specific reason why the InCell edit mode is not suitable in your case? Could you please share the currently implemented configurations for both the child and detail grids as well? This will give me a better overall understanding of the current implementation on your end.

Looking forward to hearing back from you.

Kind Regards,
Alexander
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor Grid
Asked by
perry
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or