Hi Mervin,
Thanks for contacting Syncfusion support.
We created a sample with the attached code example and we can reproduce the mentioned issue while grouping. In your code example we found that you return have the result and count in the processResponse method. By default, the grouping is done in client-side only. So, we need to process the grouping query and return the result and count. To achieve this, use the below code example.
Find the code example and sample:
<script type="text/javascript">
var dataManager = ej.DataManager({
url: "/Grid/DataSource",
adaptor: new ej.UrlAdaptor()
});
var customAdaptor = new ej.UrlAdaptor().extend({
processResponse: function (data, ds, query, xhr, request, changes) {
result = this.base.processResponse.apply(this, [data, ds, query, xhr, request, changes]);
return result;
},
});
$(function () {// Document is ready.
$("#Grid").ejGrid({
dataSource: dataManager,
allowPaging: true,
---------------------------
allowGrouping : true,
columns: [
---------------------------
],
});
});
</script> |
Regards,
Prasanna Kumar N.S.V