leora
leora

Reputation: 196459

Is there anyway to get jqgrid with group column headers and still support sorting

i see there is a new version of jqgrid and it now supports having grouped column headers

I do see that if you use it, sorting them becomes disabled for any column that is in a group. Does anyone know if there is any work around to this as I can't turn off sorting (as its being used today) but i would like to be able to leverage this new feature to group sets of columns.

Upvotes: 1

Views: 3356

Answers (1)

Oleg
Oleg

Reputation: 221997

I suppose it's misunderstanding. One can sort any column if one uses grouped column headers. What is not supported is the usage of sortable:true jqGrid option. The option allows you to change the order of columns per drag & drop of column headers.

If you look at the demo or another more generic demo, which was the origin for the code currently used in jqGrid (see the comments and the previous one), you will see that you do can sort any column. More early I prepared some demos in the answer.

Current limitation can be eliminated, but one need just place a little more code in jqGrid. Tony (the developer of jqGrid) wanted not make too many changes at once and to publish the version 4.2.0. The version has very important fixes for jQuery 1.6.3 and 1.6.4, so if one would publish new version later many people could receive compatibility problems and spend there time.

Upvotes: 4

Related Questions