server side sorting not working

Hi

I applied server side sorting. It is coming like that.



It is working from inside but from the arrow, it is working on two time then it is stop working.

Third time, state.sorted[0].name is undefined. 

Please help.

Namita

3 Replies 1 reply marked as answer

VS Vignesh Sivagnanam Syncfusion Team June 9, 2021 01:59 PM UTC

Hi Namita 
  
Greetings from Syncfusion support 
  
Based on your query you have faced issue that you are not receiving any query in the server side while clicking the sort icon for third time.  
 
We have validated your reported issue at our end and found that it is the default behavior of sorting operation in the EJ2 Grid. When you click the sort icon in the header for the first two time, the sorting operation is performed for ascending and descending operation in the grid columns. 
 
The third click on the sort icon is perform clear sorting operation on the grid column. A repetitive third click on the same column header will clear the sorting. So, we didn’t send any query and so there is no any query is received in the server side of the grid. 
 
Please refer the below Documentation for your reference, 
 
  
If this not meets your requirement, kindly explain more information about your requirement using screenshot or video demo and it will be very helpful to provide better solution. 
  
Regards, 
Vignesh Sivagnanam 


Marked as answer

NA Namita June 18, 2021 02:20 AM UTC

Hi

Thanks for your reply. 

Issue has been resolved. Can you please provide the example of server side paging also.

My paging is not working.


VS Vignesh Sivagnanam Syncfusion Team June 18, 2021 04:14 PM UTC

Hi Namita 

Thanks for the update 

We are happy that the previous issue is resolved at your end. Based on your you want to perform server side paging in the grid using remote data. We have prepared a sample by using the remote dataSource in the grid.  

Please refer the below Sample and Documentation for your reference, 


 
Regards 
Vignesh Sivagnanam 


Loader.
Up arrow icon