EasyUI Forum
April 29, 2024, 05:50:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to check if a combogrid exist  (Read 5356 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« on: November 06, 2019, 09:31:11 PM »

I need to check if a combogrid exist. I used the following code but it does not work..
Code:
if(!('#mycombo').combogrid('grid')){
   //combogrid does not exist
} else {
  //combogrid exist
}


Regards,
Alfred
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: November 07, 2019, 11:53:45 PM »

Please try this code.

Code:
if ($('#mycombo').data('combogrid')){
  // combogrid exists
}
Logged
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« Reply #2 on: November 09, 2019, 08:31:22 PM »

Thanks, it works.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!