EasyUI Forum
April 29, 2024, 02:00:09 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: Switch off reloading in combobox  (Read 3950 times)
y.bykov
Newbie
*
Posts: 49


View Profile
« on: May 12, 2017, 06:57:49 AM »

How to switch off data autoreloading on 'disabled' option change?
I already loaded data (with 'url' option) and don't need load again.
Thank you.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 12, 2017, 09:21:30 AM »

The data is loaded only once, please prevent from re-creating it again.
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #2 on: May 12, 2017, 10:27:51 AM »

Do you mean I re-create combobox when call elem.combobox({disabled:true}) on previously configured elem?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: May 12, 2017, 04:29:19 PM »

Calling $(elem).combobox({disabled:true}) will cause the component to be re-created again. Please call 'disable' method instead.
Code:
$(elem).combobox('disable');  // disable the combobox
$(elem).combobox('enable');  // enable it again
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!