I have a common method which does some operations on kendo grid instance. The caller can pass jQuery instance or actual kendo grid instance to this common method
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());
}