jqgridmvcjqgrid

when use editurl: 'clientArray' jqgrid see error dont found page


hi iam use editurl: 'clientArray', in jqgrid but see this error: plase see pic error.how sloved this problem see pic error But when they edit, it should not call server.So i tried 'ClientArray' But still it shows Url is not set alert box how sloved this problem

 myGrid.jqGrid({
                            pager: myPager, data: col[cols], datatype: 'local',
                            editurl: 'clientArray',
                            },
                            jsonReader: {
                                root: "Rows",
                                page: "Page",
                                total: "Total",
                                records: "Records",
                                repeatitems: true,
                                userdata: "UserData",
                                id: "Id",
                                cell: "RowCells"
                            },


                            cmTemplate: { editable: false, autoResizable: true },
                             loadonce: true,
                            shrinkToFit: true,

                            autoencode: true,

                        })
                        .navGrid( '#' + $(myPager)[0].id ,

                  { add: false, del: false, edit: false, search: false }   

                  )
                           .jqGrid('inlineNav', '#' + $(myPager)[0].id ,
                         {
                             // cloneToTop: true,
                             edit: false, add: true, save: false, cancel: false,
                             edittext: "ویرایش", addtext: "جدید", savetext: "ذخیره", canceltext: "لغو",

                             addParams: {
                                 position: "last",
                                 rowID: '0',
                                 useDefValues: true,
                                 addRowParams:  getInlineNavParams(true) 
                             },
                             //editParams: getInlineNavParams(false)
                         }

                         );

                        myGrid.jqGrid('filterToolbar', {
                            stringResult: true,//// وجود این سطر سبب می‌شود تا اپراتورها به سرور ارسال شوند
                            enableClear: false,
                            searchOnEnter: true,
                            searchOperators: true, // فعال سازی منوی اپراتورها
                            defaultSearch: "cn"

                        });

Solution

  • The usage of editurl: 'clientArray' is correct. I'd recommend you to try to upgrade to free jqGrid 4.15.1 - it's the fork of jqGrid, which I develop after the main fork are made commercial and renamed to Guriddo jqGrid JS.

    To test free jqGrid you can load jqGrid files directly from CDN:

    https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.1/cs‌​s/ui.jqgrid.min.css
    https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.1/i1‌​8n/min/grid.locale-f‌​a.js
    https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.1/jq‌​uery.jqgrid.min.js
    

    See the wiki article for more details.