EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 12, 2024, 03:51:22 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
How to check if a combogrid exist
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to check if a combogrid exist (Read 6529 times)
Alfred
Full Member
Posts: 134
-Licensed User-
How to check if a combogrid exist
«
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: 2274
Re: How to check if a combogrid exist
«
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-
Re: How to check if a combogrid exist
«
Reply #2 on:
November 09, 2019, 08:31:22 PM »
Thanks, it works.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...