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

How to exclude top two rows while sorting?

1 Answer 325 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Akash
Top achievements
Rank 1
Akash asked on 27 Mar 2017, 09:39 AM
I have two rows on the top of the grid other than header row for showing grid related information. While sorting those row values are also considered. Can we somehow exclude the data from those rows while sorting and remain static throughout all the grid operations?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Mar 2017, 06:29 AM
Hello Akash,

The desired functionality is not available out of the box in the Kendo UI Grid.

A similar result can be achieved using custom logic for sorting the items using the custom compare function. The logic may be applied that regardless of the sorting direction the both rows will always be displayed on the top:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.sortable.compare

Still, the desired result can also be affected by filtering, grouping, paging and other functionalities of the Grid which can cause unexpected issues.

I can suggest submitting a feature request for having frozen rows, and based on its popularity we may implement in as a built-in feature in a future release.

Regards,
Stefan
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
Grid
Asked by
Akash
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or