【问题标题】:jqgrid set method in the APIAPI中的jqgrid set方法
【发布时间】:2012-05-02 03:28:41
【问题描述】:

如果get方法调用是这样的

jQuery('#list6').jqGrid('getGridParam','records')

那么set方法可以这样吗?

 jQuery('#projectList').jqGrid('setGridParam','records',6);

我想在jqgrid中设置记录,但是找不到API。

谢谢

【问题讨论】:

    标签: jquery jqgrid


    【解决方案1】:

    setGridParam 的正确用法是这样的

    jQuery('#projectList').jqGrid('setGridParam', {records: 6}); // STILL WRONG!!!
    

    但是你不能顺便设置jqGrid的readonly属性。您可以在“可以更改吗?”一栏中看到。 the page 文档的表格中的哪些 jqGrid 选项可以更改,哪些不能更改。

    我敢肯定你试图走错路。所以你试图解决的问题根本不应该存在。

    【讨论】:

      猜你喜欢
      • 2013-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多