Author Topic: Check if Grid is destroyed  (Read 3451 times)

sidads

  • Newbie
  • *
  • Posts: 11
    • View Profile
Check if Grid is destroyed
« on: October 28, 2013, 07:43:05 pm »

Hello Experts,

Please advise how to check if a PQ Grid is Destoryed using Destory() method.

I tried using $("#mygrid").length but it returned non zero value

Any help is much appreciate!

Regards,
Adarsh

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Check if Grid is destroyed
« Reply #1 on: October 28, 2013, 10:40:15 pm »
one of the ways is to check for pq-grid class

$("#mygrid").hasClass("pq-grid") == false
« Last Edit: October 28, 2013, 10:44:29 pm by paramquery »