How to exclude top two rows while sorting?

2 posts, 0 answers
  1. Akash
    Akash avatar
    1 posts
    Member since:
    Mar 2017

    Posted 27 Mar 2017 Link to this post

    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?
  2. Stefan
    Admin
    Stefan avatar
    2819 posts

    Posted 29 Mar 2017 Link to this post

    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.
Back to Top