title: jqGrid with Zend Framework (zfdatagrid)
body: <p>In couple days I couldn't find normal answer. I hope somebody can help me.</p>
  
  <p>I am using jqGrid in my Zend Framework application. I want that grid in my application could be edited inline (<a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3ainline_editing" rel="nofollow">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing</a>). When I am not using ZF and I am writing jqGrid code (java script) by myself - inline editing works ok. But when using ZF class "Bvb_Grid_Deploy_JqGrid" and deploying grid, ZF generates java script by itself. The problem that I couldn't find ZF method to insert js function "onSelectRow" correctly. Tryied to use "$grid->jqAddOnLoad($js);" in ZF controller but this java script code appears not like in example and then grid is not loading normaly at all.
  Must be:</p>
  
  <pre><code>jQuery().ready(function (){
    jQuery("#jqg_RentAsset").jqGrid(
    {
      height: 250,
       ...
      multiselect: true,
      caption: "Manipulating Array Data",
      onSelectRow: function(id)
      {
        alert(id);
      }
    });
  </code></pre>
  
  <p>But happens:</p>
  
  <pre><code>$(document).ready(function() {
    jQuery("#jqg_RentAsset").jqGrid(
    {
      onSelectRow: function(id)
      {
        alert(id);
      }
    });
    jQuery("#jqg_RentAsset").jqGrid(
    {
      "height":"250",
        ...
    });
  </code></pre>
  
  <p>Maybe somebody knows what method I must to use in ZF Controller or maybe how differently I need to write java script?</p>