title: jqgrid adding additional attribute to rows
body: <p>I want to use contextmenu for my grid but I have an special situation, for each row according to one [or may be more] of its fields value I want to show or hide some of the contextmenu items.</p>
  
  <p>I know i can get the row or even the rowId of right clicked one when binding the contextmenu and show\hide items according to that like this:</p>
  
  <pre><code>jQuery(".jqgrow", "#ContextMenuGrid").contextMenu('myMenu1', {
          bindings: {
              'edit': function(t) {
                  editRow();
              },
              'add': function(t) {
                  addRow();   
              },
              'del': function(t) {
                  delRow();
              }
          },
          onContextMenu : function(event, menu)
                          {
                          var rowId = $(event.target).parent("tr").attr("id")
                          var grid = $("#ContextMenuGrid");
                          grid.setSelection(rowId);                                    
  
                          return true;                                    
  
                          }
      });             
  }
  </code></pre>
  
  <p>now I want to if there is way to add additional attribute to jqgrid rows like "id" that can be retrieved in situation like that to decide upon that!</p>
  
  <pre><code>{
  "page":1,
  "total":83,
  "records":830,
  "rows":[{"data-custom-data":"data","id":"11067","cell":[...]}]
  }
  </code></pre>
  
  <p>my be like the code above or...</p>