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

Bug - Column sort icon shows on click, but nothing happens

3 Answers 290 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Iron
Tom asked on 11 Apr 2017, 10:25 AM

See attached files.

I have a pivot that is mostly functional, however clicking the column block either in the pivot grid or in the configurator indicates the columns can be sorted, but while the icon changes, nothing actually happens. This appears to be a bug.

I have also just noticed the same issue for row groups. The icon indicates there is sorting, but nothing happens.

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 13 Apr 2017, 08:54 AM

Hello Tom,

I guess that you are facing the problem described in the Sorting article: Sorting is supported only in OLAP binding scenarios. Currently, you cannot sort the flat data (client cube). 

Regards,
Boyan Dimitrov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Tom
Top achievements
Rank 1
Iron
answered on 13 Apr 2017, 09:52 AM

Displaying the sort icon is a little misleading then, no? It is indicated to the user that this functionality exists, and I think there is a strong expectation that it exists. I would certainly take this point of view; it is very strange that I can click that header and the first and second options I am presented with are to sort.

Can you please indicate how to go about reordering these columns programmatically?  would rather implement something to present the data correctly, than leave it in an essentially random order. I have tried digging into the datasource and rearranging the contents of the _columnBuilder object (amongst others), but have had little to no luck.

0
Konstantin Dikov
Telerik team
answered on 17 Apr 2017, 10:52 AM
Hi Tom,

A possible solution is mentioned in the following forum thread, where the data is sorted prior to setting it as a DataSource of the PivotGrid, but it also has its limitations:

Best Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PivotGrid
Asked by
Tom
Top achievements
Rank 1
Iron
Answers by
Boyan Dimitrov
Telerik team
Tom
Top achievements
Rank 1
Iron
Konstantin Dikov
Telerik team
Share this question
or