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

How to show column sort indicators on custom binding?

4 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Uwe
Top achievements
Rank 1
Uwe asked on 04 Jan 2019, 08:09 AM

I'm using Custom Binding via AJAX to sort my data source.

The grid columns do not show any sort indicators.

In contrast, when not doing custom binding but let Kendo UI handle it, sort indicators are being displayed.

My question:

How can I tell the grid columns to show sort indicators, even if I'm using custom binding?

4 Answers, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 07 Jan 2019, 02:44 PM
Hi Uwe,

The sort indicator would be shown only when the data items have been sorted by clicking on the column's header cell or when the sort is applied to the data source of the grid. That said, if you would like to indicate the sort, you should sort the data source of the grid as well. 

Let me know in case further clarifications are needed.


Kind regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Uwe
Top achievements
Rank 1
answered on 07 Jan 2019, 02:47 PM

Thank you.

Of course does the user click the header. Still, the sort indicators are not shown, as long as Custom Binding is being used.

To me, this looks like a bug.

0
Accepted
Tsvetomir
Telerik team
answered on 08 Jan 2019, 05:00 PM
Hi Uwe,

When using the Custom Ajax Binding, then all the basic functionalities like filtering, sorting, and grouping have to be handled. If they have been implemented, the grid will show sort indicators accordingly. We have created a live demo which exposes such data source configuration along with implementations of the functionalities of interest. 

Grid / Custom ajax binding

Please note that when the sorting is applied from the column header the sort indicator is shown. Can you compare it to the project on your side and check out which are the crucial differences between the two? 

Ideally, it would be great if you can send me a runnable project in which the faulty behavior can be replicated. This would enable me to debug the issue locally and provide an accurate suggestion regarding the specific use-case. 


Kind regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Uwe
Top achievements
Rank 1
answered on 14 Jan 2019, 08:51 AM

Thank you, it was my fault that I had custom CSS rules to hide the arrow.

 

Sorry for all the trouble and thank you very much for your patient help!

Tags
Grid
Asked by
Uwe
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Uwe
Top achievements
Rank 1
Share this question
or