title: Kendo UI - How to check if instance is kendoGrid instance or check if grid is initialized on the given DOM element
body: <p>I have a common method which does some operations on <code>kendo grid</code> instance. The caller can pass jQuery instance or actual kendo grid instance to this common method</p>
  
  <pre><code>function commomMethod(grid)
  {
      //?? How do i check if `grid` instance is not KendoGrid instance
      if(grid is not kendoGrid)
      {
         grid = grid.getKendoGrid();
      }
      //do something
  }
  
  
  function caller1()
  {
     commomMethod($("#mygrid"));
  }
  
  function caller2()
  {
     commomMethod($("#mygrid").getKendoGrid());
  }
  </code></pre>