Two issues Issue 1. ‘colMenu:true’ does not respect setting iN ‘colModel’. For example if ‘sortable:false’ is set in ‘colModel’ the sort asc/desc is still shown in ‘colMenu’.
I changed the line below in ‘buildColMenu = function(….’
cm = ts.p.colModel[index], op = $.extend({sorting:true, columns: true, filtering: true, seraching:true, grouping:true, freeze : true}, cm.coloptions)
To this
cm = ts.p.colModel[index], op = $.extend({sorting:ts.p.colModel[index].sortable, columns: true, filtering: true, seraching:true, grouping:true, freeze : true}, cm.coloptions)
Now sorting does not show when ‘sortable:false’ is set in ‘colModel’
Issue 2: ‘colMenu:true’ when one of the sorting option is clicked after opening ‘colMenu’ the sort icons ‘icon_asc’ and ‘icon_desc’ appear. This is true even if viewsortcols:[false,’vertical’,true]
is set.
I changed these two lines in styleUI -> jQueryUI -> base
Thank you very much for the description of the problems and solutions provided.
Issue1: Yes you are right and solution provided seems to be ok, but I want to extend this idea and use the existing options in coloptions. I think there is a situation, where the sorting on grid header should be enabled, while the sorting should not appear in column menu. I suggest to use the following:
This way if sortable options is false, sorting will not appear. It will not appear if the sorting options in coloptions is false too.
Issue2: The icons in header sorting and its appearance I think should be not connected with these in column menu. For now I will make no changes in this problem.