tonytomov / jqGrid

jQuery grid plugin

Home Page:www.trirand.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.
微信截图_20231208171827

"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