title: Server-side function is called only once in jqGrid
body: <p>I've put a jqgrid the page. In Jqgrid placed  a column that I want when user click on the column, Fill Other Jqgrid.Now when I click on the desired column. Only first-time Fill second JQGrid,But the next time the server side code will not run.
  The code is written as follows</p>
  
  <pre><code>var firstButtonColumnIndex = 0;
              grid = $('#list'); buttonNames = {};
              grid.jqGrid({
                  url: 'jQGridHandler.ashx?Request=1',
                  loadonce: true,
                  direction: "rtl",
                  pgtext: "صفحه {0} از {1}",
                  datatype: 'json',
                  height: 250,
                  colNames: ['شماره درخواست', 'شماره اموال', 'شرح دستور کار', 'تاریخ دستور کار', 'زمان دستور کار', 'ملاحظات', '', ''],
                  colModel: [
  
                          { name: 'WorkOrderNo', width: 100, sortable: true },
                          { name: 'AssetNo', width: 100, sortable: true },
                          { name: 'WorkDescription', width: 400, sortable: true },
                          { name: 'WorkOrderDate', width: 80, sortable: true },
                          { name: 'WorkOrderTime', width: 80, sortable: true },
                          { name: 'Remark', width: 100, sortable: true },
                          { name: 'del', width: 20, sortable: false, search: false,
                              formatter: function () {
                                  return "&lt;span class='ui-icon ui-icon-trash'&gt;&lt;/span&gt;";
                              }
                          },
                          { name: 'details', width: 20, sortable: false, search: false,
                              formatter: function () {
                                  return "&lt;span class='ui-icon ui-icon-document'&gt;&lt;/span&gt;";
                              }
                          }
  
                      ],
                  gridview: true,
                  rowNum: 10,
                  rowList: [10, 20, 30],
                  pager: '#pager',
                  //  sortname: 'WorkOrderNo',
                  viewrecords: true,
                  sortorder: 'asc',
                  caption: 'درخواست ها...........',
                  rownumbers: true,
                  beforeSelectRow: function (rowid, e) {
                      var iCol = $.jgrid.getCellIndex(e.target);
                      if (iCol == 7) {
                          //alert("rowid=" + rowid + "\nButton name: " + buttonNames[iCol]);
                          // $('img').each(function () {
                          $("#workRequestPopUp").draggable();
                          //  });
  
                      } else if (iCol == 8) {
                          workOrderId = rowid;
  
                          $("#tblRequestWorks tr").remove();
                          $("#tblRequestWorks").jqGrid({
                             // url: 'jQGridHandler.ashx?RequestWorksFill=1&amp;workOrderId=' + workOrderId,
                              url: "PublicHandler.ashx?Request=1&amp;workOrderId: rowid",
                              direction: "rtl",
                              pgtext: "",
                              datatype: 'json',
                              height: 250,
                              colNames: ['نام کار', 'نام واحد', 'سرپرست واحد', 'تعداد', 'پایان کار', ''],
                              colModel: [
  
                          { name: 'WorkName', width: 300, sortable: true },
                          { name: 'SectionName', width: 100, sortable: true },
                          { name: 'SectionSupervisor', width: 100, sortable: true },
                          { name: 'RequestCount', width: 80, sortable: true },
                          { name: 'FinishWork', width: 100, sortable: true },
                          { name: 'details', width: 20, sortable: false, search: false,
                              formatter: function () {
                                  return "&lt;span class='ui-icon ui-icon-document'&gt;&lt;/span&gt;";
                              }
                          }
  
                      ],
  
                              rowNum: 10,
                              rowList: [10, 20, 30],
  
                              sortorder: 'asc',
                              caption: 'Test',
                              rownumbers: true,
                              beforeSelectRow: function (rowid, e) {
                                  var iCol = $.jgrid.getCellIndex(e.target);
                                  if (iCol == 6) {
                                      alert(rowid);
                                      Fill12(rowid);
                                  } else if (iCol == 8) {
                                      alert(rowid);
                                      Fill12(rowid);
  
                                      return true;
  
                                      // return (iCol &gt;= firstButtonColumnIndex) ? false : true;
  
                                  }
                              },
                              dataType: "json"
  
                          });
                          //  fillRequestWorkPopup(workOrderId);
  
                          popup(e);
                      }
                      // prevent row selection if one click on the button
                      // return (iCol &gt;= firstButtonColumnIndex) ? false : true;
                      return true;
                  }
  
  
              });
  </code></pre>
  
  <p>It is Delegate Function in tr in JQGrid?
  I respected professors can help. thanks All</p>