Maintain Grouping after Rebinding DataSource in Ajax

Hello,

I have a grid that has grouped columns on load. This grid is saved by an external button, which utilizes Ajax to send the data to our server (database). Once the response is received and the rebinding of the datasource is complete, the grouping is lost. Is there a simple fix to maintain the grouping? 

Thanks!

1 Reply

PK Padmavathy Kamalanathan Syncfusion Team March 21, 2020 07:49 AM UTC

Hi Matt,

Thanks for contacting Syncfusion Forums.

QUERY: Maintain grouping after rebinding DataSource in Ajax

We have validated the reported issue. We have grouped grid column in databound event and rebounded different grid data (with dataSource method of grid) using ajax in button click. After binding new data, the grouping persisted without loss. We are unable to reproduce the reported issue at our end.

We have prepared sample as per your requirement. You can download the sample from the below location,

Please refer the below code snippet,



Please refer the below help documentation,

We request you to share us the below details so that we can validate the issue further,
1) complete grid rendering code(both client and server end)
2) Essential studio version
3) Also please let us know in which event you have grouped columns (load or dataBound)
4) screenshot of error with stack trace if any
5) video demonstrating the issue

Please get back to us if you need further assistance.

Regards,
Padmavathy Kamalanathan


Loader.
Up arrow icon