PDA

View Full Version : [CLOSED] Gridpanel - multiheader column sorting



PriceRightHTML5team
Sep 07, 2014, 5:56 AM
Hi

Mine is as Asp.Net MVC Razor view application.

I have a grid panel to which I have applied a multi header. Below is the ColumnModel snippet and the snap of the grid



...
...
.ColumnModel(
Html.X().Column().Text("Main Heading").Columns(
Html.X().Column().Text("First Column").DataIndex("FirstColumn").Width(100),
Html.X().Column().Text("Second Column").DataIndex("SecondColumn").Width(120)).Sortable(true)
...
...


http://forums.ext.net/attachment.php?attachmentid=14981&stc=1


The issue is - Column sorting options have got disabled. Also columns are not getting sorted on specific column header click. I need have sorting on the columns.

Vladimir
Sep 07, 2014, 8:46 AM
Hi

If you mean sorting on "Main Heading" column then it is not possible. Grid supports sorting on one column only therefore you have to sort on "First Column" or "Second Column" columns only

PriceRightHTML5team
Sep 07, 2014, 8:59 AM
Hi Vladimir,

Yes i need sorting on 'First column' and 'second column' only.
But as i have shown in the attached image the sort options are disabled for 'second column'. Same is the case with 'first column'.

Vladimir
Sep 07, 2014, 9:41 AM
Please see the following sample
http://examples2.ext.net/#/GridPanel/Miscellaneous/ColumnHeaderGroup/

Sorting is not disabled, so, I guess, something wrong in your configuration, please post test sample reproduces the issue