We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Groupings not working for server side using UrlAdaptor

Thread ID:





129883 Apr 7,2017 07:26 AM UTC Apr 12,2017 04:14 AM UTC JavaScript 3
Tags: ejGrid
Asked On April 7, 2017 07:26 AM UTC

Hi I'm extending UrlAdaptor to process the result from my web service and the paging and sorting is working well but I'm getting error when using groupings.
please see attach code

Prasanna Kumar Viswanathan [Syncfusion]
Replied On April 10, 2017 02:50 PM UTC

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. 
                dataSource: dataManager, 
                allowPaging: true, 
               allowGrouping : true, 
                columns: [ 

Prasanna Kumar N.S.V 

Replied On April 11, 2017 05:11 AM UTC

Hi Prasanna 

Awesome fix! thank you.

Prasanna Kumar Viswanathan [Syncfusion]
Replied On April 12, 2017 04:14 AM UTC

Hi Mervin, 

We are happy to hear that your issue has been resolved. 

Please let us know if you need any further assistance. 

Prasanna Kumar N.S.V 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon