Note that there are some explanatory texts on larger screens.

plurals
  1. POjqGrid Issue when trying to use pager
    primarykey
    data
    text
    <p>I am new to jqGrid, I just started doing samples on jqGrid in asp.net web forms. I used the array method for sample purpose with out any extra features. Now I am trying to add the pager feature to the jqGrid. While adding the pager feature i am getting the following error.</p> <blockquote> <p>Microsoft JScript runtime error: Unable to get value of the property 'integer': object is null or undefined</p> </blockquote> <p>error is coming at the following part of the plugin</p> <pre><code>k=b.jgrid.formatter.integer||{} </code></pre> <p>I am providing you with the code snippet that I have done till now.</p> <p><strong>Aspx Page</strong></p> <pre><code>&lt;asp:ScriptManager ID="SmjqGrid" runat="server" &gt; &lt;Scripts&gt; &lt;asp:ScriptReference Path="~/Scripts/jQuery.1.9.1.min.js" /&gt; &lt;asp:ScriptReference Path="~/Scripts/jquery-ui-1.8.2.custom.min.js" /&gt; &lt;%--&lt;asp:ScriptReference Path="~/Scripts/grid.locale-en.js" /&gt;--%&gt; &lt;asp:ScriptReference Path="~/Scripts/jquery.jqGrid.min.js" /&gt; &lt;asp:ScriptReference Path="~/Scripts/ui.multiselect.js" /&gt; &lt;/Scripts&gt; &lt;/asp:ScriptManager&gt; &lt;script type="text/javascript"&gt; function pageLoad() { jQuery("#list4").jqGrid({ datatype: "local", height: 250, colNames: [ 'Date', 'Client', 'Amount', 'Tax', 'Total'], colModel: [ { name: 'invdate', index: 'invdate', width: 90, sorttype: "date" }, { name: 'name', index: 'name', width: 100 }, { name: 'amount', index: 'amount', width: 80, align: "right", sorttype: "float" }, { name: 'tax', index: 'tax', width: 80, align: "right", sorttype: "float" }, { name: 'total', index: 'total', width: 80, align: "right", sorttype: "float" } ], multiselect: true, caption: "Sample On jqGrid", rowNum: 5, pager: '#pager' }); var mydata = [ { id: "1", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" }, { id: "2", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" }, { id: "3", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" }, { id: "4", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" }, { id: "5", invdate: "2007-10-05", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" }, { id: "6", invdate: "2007-09-06", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" }, { id: "7", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" }, { id: "8", invdate: "2007-10-03", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" }, { id: "9", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" } ]; for (var i = 0; i &lt;= mydata.length; i++) { jQuery("#list4").jqGrid('addRowData', i + 1, mydata[i]); } } &lt;/script&gt; &lt;table id="list4"&gt;&lt;/table&gt; &lt;div id="pager"&gt;&lt;/div&gt; </code></pre> <p>Hope my question is clear enough.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload