jquery jqgrid添加导航栏(搜索,删除,添加ecc。)

时间:2011-07-22 17:14:33

标签: jquery jqgrid navbar

我会在我的jqgrid上添加导航栏,如下所示:http://www.trirand.com/jqgridwiki/lib/exe/fetch.php?media=wiki:navigator1.png

      jQuery("#tabImprese").jqGrid({
                        url:'retrieve/imprese',
                        mtype:"POST",
                        postData: { limit:'10'},
                        datatype: "json",
                        height: 150,
                        .....
                        ....
                    }).navGrid('#tabImprese',
                    {}, //options
                    {reloadAfterSubmit:false}, // edit options
                    {reloadAfterSubmit:false}, // add options
                    {reloadAfterSubmit:false}, // del options
                    {} // search options
                );

这是我的代码,但在我的页面中,我看不到任何内容 http://mongolera.dyndns.biz/projects/gestionalePreventivi/index.html 在Imprese标签中。

有什么问题? 感谢。

1 个答案:

答案 0 :(得分:1)

您使用navGrid('#tabImprese',...);代替navGrid('#pagerImprese',...);