Closed hp3423 closed 7 months ago
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
when "colMenu" is true , "coloptions" is invalid.
So I see the source code, I find an error on line 5058.![微信截图_20231208171827](https://github.com/tonytomov/jqGrid/assets/12905493/ac36ad53-feda-4c4f-a49b-508bb0ac6143)
"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),