How do I tell the Kendo Grid to not create a new row until the user has clicked OK for the new entry (and the entry has passed validation)? Is it possible to have this new row correctly placed in the appropriate grouping?
5 Answers, 1 is accepted
Creating a new group when adding new item is expected, unless there is a defaultValue for the column which the Grid is grouped by. Here I tried to reproduce the issue, but everything works as expected - both the new row and the new group are removed on Cancel. Could you please check the example and let me know if I am doing something differently?
I am afraid that adding the new row only after pressing the OK button is currently not supported out of the box.
I know this is old, but I am having this same issue now as well. I am grouping by a foreign key, and even tried adding a default value. However, it still creates a new group (the new group is using the default value, which is an existing group, also odd...) and when I click cancel on the pop up editor, the new group and new row persist. Any help or insight would be greatly appreciated!! I was asked to add this property/foreign key specifically for grouping, so I need to get this right.
Here is my model:
Here is the code for my grid.
I am sending a sample runnable application which we can use as a reference point. Please modify the BatchSearch View in the attached sample ( run with /Home/BatchSearch ) to replicate the described scenario and send it back to us for further investigation.
Telerik by Progress
I know this is just under 12 months old but I am having the exact same issue as above. I have added the DefaultValue but experience the same behavior. Did you guy's come up with a resolution?
I can provide more details if required.
At the moment there is no workaround that to be universal and to work in all configurations of the grid.
The new item have only top and bottom position to be placed at. And this is the reason it creates a group to be visible in. It is the desired approach and we do not plan to change it.