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

Grouped grid refresh group after changing group field

5 Answers 590 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian asked on 06 Dec 2017, 06:04 PM

Hello,

If I change the value of a field which is grouped in the grid (Popup Edit) and save it, the grid does not reflect the changed row in the correct group...

to use grid.refresh() doesn't help - is it necessary to Reload the grid in such a case?

robert

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Dec 2017, 09:32 AM
Hello, Robert,

In these scenarios, the Grid should automatically place the edited item in the correct group or the create a new one if this is a unique value:

https://www.screencast.com/t/vb16C5cv

http://dojo.telerik.com/oCENE

The described result could be observed if the update is not successful and the Grid is still having the old data.

If additional assistance is needed, please provide an example and I will gladly investigate further. 

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 11 Dec 2017, 11:02 AM

Do you have a small MVC Core Sample Project for downlaod where I can use to demonstrate it because my Project is very large...
(I'm so busy to create a sample Project now :-()

 

0
Stefan
Telerik team
answered on 14 Dec 2017, 06:51 AM
Hello, Robert,

I can suggest checking this MVC repository which contains many examples which can be used as a starting point:

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid

Also, the Kendo UI for ASP.NET Core extension provides an option to fastly build a template project:

https://docs.telerik.com/aspnet-mvc/vs-integration/new-project-wizard#creating-projects

I will be expecting the project and gladly assist.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 14 Dec 2017, 10:20 AM

Hi,

You can download a sample Project here: http://www.madrian.at/Telerik.zip
see also the Video: https://www.screencast.com/t/A6zypAa8m5Z

robert

0
Stefan
Telerik team
answered on 18 Dec 2017, 12:46 PM
Hello, Robert,

Thank you for the example and the details.

The demonstrated result occurs because the server operations are set to true by default when the ASP.NET Core version of the Grid is used.

If the serverOperations are set to true, the Grid will make the grouping on the server, but the information for the edited item will still not be available. After consulting with the developers' team I can confirm that this is expected behavior with the serverOperations.

In this scenario, either the serverOperations have to be set to false, or the Grid has to be refreshed programmatically after every update using the refresh method:

.DataSource(dataSource => dataSource
    .Ajax()
    .ServerOperation(false)

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-refresh

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Answers by
Stefan
Telerik team
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Share this question
or