title: jqGrid treeGrid catch expand collaps events
body: <p>I use jqGrid  to epose some big Tree. Now I want to remember expanded and collapsed nodes in cookies</p>
  
  <p>So I want to catch expand and collaps event. I couldn't find it in manual</p>
  
  <p>So I've resolved it in this way</p>
  
  <pre><code>grid.find("div.treeclick").bind("click",function(e){
      classes = $(this).attr('class');
      //returns:
      //ui-icon treeclick ui-icon-triangle-1-s tree-minus
      //ui-icon treeclick ui-icon-triangle-1-e tree-plus
      if(classes.indexOf('-minus') != -1)
          alert ('Expand!');
      else if(classes.indexOf('-plus') != -1)
          alert ('Collaps!')
  });
  </code></pre>
  
  <p>Could anybody propose another way?</p>