title: Javascript : Check if RadGrid item is in Edit mode
body: <p>Iam using a telerik <strong>RadGrid</strong> and I want to check if <strong>GridDataItem</strong> is in edit mode </p>
  
  <p>Using <strong><em>javascript</em></strong> .</p>
  
  <p>I can handle this using VB but I want to do it on Client Side.</p>
  
  <p>If anyone can tell me also <em>how to loop through all Items in the Grid and get selected item</em></p>
  
  <p>using JavaScript.</p>
  
  <p>I'm stuck Here .. Any Help Please ... I will be grateful.</p>
  
  <p><strong>2)</strong> I have a problem with OnCommand function in Javascript</p>
  
  <p>I have a <strong><em>commandItemTemplate</em></strong> in radgrid.</p>
  
  <p>and I add a client event: <code>&lt;ClientEvents OnCommand="OnCommand" /&gt;</code></p>
  
  <p>Function:  <code>function OnCommand(sender, args) {
              if (args.get_commandName() == 'EditSelected') {
              ....}</code></p>
  
  <p>The OnCommand doesn't fire on any of the commands in the <strong><em>CommandItemTemplate</em></strong>
  , on the other hand , it fires on other commands like (Edit,Update,Delete,...).</p>
  
  <p>I don't know why??  I need Help Please.</p>