title: Custom formatter calling in jqgrid not worked
body: <p>I am trying to call a formatter function from my jqgrid. I put an alert inside my formatter function, but it is not worked. I followed <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter" rel="nofollow noreferrer">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter</a> tutorial.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>function jqGridMethod() {
      var jsonData = {
          "model" : [ {
              "name" : "code",
              "index" : "code",
              "width" : "100",
              "sortable" : false,
              "editable" : false,
              formatter : "showlink",
              formatoptions : {
                  baseLinkUrl : 'javascript:',
                  showAction : "seasonEdit('",
                  addParam : "');"
              }
          }, {
              "name" : "name",
              "index" : "name",
              "width" : 100
          },{
              "name" : "colorCode",
              "index" :"colorCode" ,
              "width" : 100,
              formatter:colorformatter
  
          },{
              "name" : "startDay",
              "index" : "startDay",
              "width" : 100
          }, {
              "name" : "startMonth",
              "index" : "startMonth",
              "width" : 100
          },{
              "name" : "endDay",
              "index" : "endDay",
              "width" : 100
          },{
              "name" : "endMonth",
              "index" : "endMonth",
              "width" : 100
          },{
              "name" : "encryption",
              "index" : "encryption",
              "width" : "100",
              "hidden" : true,
          } ],
          "sort" : {
              "sortcount" : "2",
              "sortColumn1" : "#jqgh_jqGrid_list_grid_code",
              "sortColumn2" : "#jqgh_jqGrid_list_grid_name"
          },
          "column" : [ "Code", "Name","Color","Start Day","Start Month","End Day","End Month", "Encryption" ],
          "url" : {
              "serverurl" : "/pms/season/list"
          },
      };
      jqGridData(jsonData);
  }
  /////////////////////////////////
  
  
     function colorformatter(cellvalue, options, rowObject)
  {
      //return '&lt;img src="'+cellvalue+'" /&gt;';
  
      alert("cellvalue"+cellvalue);
  // format the cellvalue to new format
      var myGrid = $('#jqGrid_list_grid'),
      selRowId = myGrid.jqGrid ('getGridParam', 'selrow'),
      celValue = myGrid.jqGrid ('getCell', selRowId, 'Color');
  return cellvalue;
  }
  </code></pre>
  
  <p>Is there any thing wrong with my code? Why don't my alert gets worked?</p>
  
  <p>I checked inside my browser console. No errors shown there, it indicated that my function is called, but that alert and following code not gets worked?</p>