title: How to load rowlist values dynamically
body: <p>I am creating application in MVC 4 jqgrid, i want to set rowlist based on the data size or user option(setting the value in the web.config key,value).I tried to pass values using function but i am getting values in dropdown like this.please help me.</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>Method;
            function setRowList() {
                  var rownum = "[5,10]";
                  return rownum;
              }
          MY grid:
                  $("#ApplicationDetailsTable").jqGrid({
                      url: '@Url.Action("AppListDetails", "JQGridHome")',
                      datatype: 'json',
  
                      colNames: ["no1", "name", "phone"],
                      colModel: [
                          { name: "no1", index: "no1", width: 40, align: "left", stype: 'select', searchoptions: { sopt: ['eq'], value: categoriesStr } },
                          { name: "name", index: "name", width: 100, align: "left" },
                          { name: "phone", index: "phone", width: 200, align: "left" }
                      ],
                      width: 550,
                      loadonce: true,
                      height: 200,
                      toppager: false,
                  pager: $("#JQGridPaging"),
                      rowNum:4,
                  rowList: setRowList(),
                      viewrecords: true,
                      caption: "A Basic jqGrid - Read Only",
  </code></pre>
  
  <p><strong>image</strong></p>
  
  <p><img src="https://i.stack.imgur.com/hWhrL.jpg" alt="enter image description here"></p>