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

Sortting not working after applying group

3 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Daochuen asked on 27 Jun 2018, 03:16 PM

Hello,

Could some one help me the sorting issue? Records cannot be sorted  by clicking on a column's header after I applying group on the grid. I am working on MVC project. 

Thanks in advance.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 29 Jun 2018, 12:22 PM
Hello, Daochuen,

The Kendo UI Grid sorts the items within the groups when it is grouped, the groups themselves are already sorted.

You can test the functionality in our online demos which are also available in the distributions as a runnable solution here:

~telerik.ui.for.aspnetmvc.<VERSION>.commercial\wrappers\aspnetmvc\Examples\VS2015

https://demos.telerik.com/aspnet-mvc/grid

If you group by one of the columns, you will see that the sorting will still work within the items in the group. In case there is something that we should know in the project that you are working on, please share it so we can provide you with the best possible approach to resolve any issues which you may be experiencing. 

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 02 Jul 2018, 03:01 PM

Hi Alex,

Thanks for your help. Do I have a way for only allowing user grouping on one column which mean no any ways to drag other columns to the top?

0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 03 Jul 2018, 03:42 PM
Hello, Daochuen,

The Kendo UI Grid has a built-in way to achieve that at a column level. You may use the column.groupable property and set it to false:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.groupable

For UI for ASP.NET MVC, use the syntax as below:

columns.Bound(x => x.LastName).Groupable(false);

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Try our brand new, jQuery-free Angular 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
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or