jqGrid colModel parameters inside php array

后端 未结 1 1480
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 06:25

I\'m working with a project that uses jqGrid in the most recent version. The thing is that this project is PHP(5.6) and uses JSON to \"translate/talk\" to jqGrid framework,

相关标签:
1条回答
  • 2021-01-16 06:48

    Using jQGrid $.extend, it is possible to set colModel attributes settings, properties and events of colModel's even after inital settings loaded.

    EXAMPLE:

    var p = $("#tabela-laudos").jqGrid("getGridParam");
            //=================================================
            p.colModel[p.iColByName.laudo] = $.extend(true,
                {},
                p.colModel[p.iColByName.laudo], //NEW VALUES BELOW
                {
                    editoptions:
                    {
                        placeholder: "Ex.: 17777"
                    },
                }
            );
    
    0 讨论(0)
提交回复
热议问题