config “ coloptions ” is invalid parameter
hp3423 opened this issue · comments
when "colMenu" is true , "coloptions" is invalid.
So I see the source code, I find an error on line 5058.
"coloptions" is not in "cm".
I think the correct code should be
cm = ts.p.colModel[index], op = $.extend({sorting:true, columns: true, filtering: true, seraching:true, grouping:true, freeze : true}, ts.p.coloptions),
Hello,
coloptions should in colModel property and not as common one.
See this example
Thanks.
Can we add a common parameter,like "colOptions",or we must modify "coloptions" on every column .
The code like this:
cm = ts.p.colModel[index], op = $.extend({sorting:true, columns: true, filtering: true, seraching:true, grouping:true, freeze : true},ts.p.colOptions, cm.coloptions),
We have grid option called cmTemplate, where you can add common options for all colModel items.
See docs for this
Thanks,I got it