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

AngularJS: client side filtering and sorting does not work?

1 Answer 145 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Labhesh
Top achievements
Rank 1
Labhesh asked on 23 May 2016, 12:32 AM

Hi, 

I tried using the filtering and sorting functionality on clientside when using pivotgrid by setting the $scope.options - but neither of these work. 

Is this a bug or some additional configuration that needs to be done?

$scope.options = {
    columnWidth : 20,
    height : 580,
    dataSource: $scope.dataSource,
    filterable: true,
    sortable: true
};

Note: I am getting all of my data from remote service in form of json (via transport) and using schema/model/cube technique to specify rows/column/measures

Thanks, 

 

Labhesh

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 May 2016, 06:50 AM
Hello Labhesh,

The filtering and sorting configuration can be defined using the k-options attribute. Here is a demo that demonstrates how this can be accomplished:
Please note that Sorting is not supported when widget is bound to flat data.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
PivotGrid
Asked by
Labhesh
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or