EasyUI Forum
September 13, 2025, 10:01:10 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 disable the objects into a Panel?  (Read 9092 times)
korenanzo
Guest
« on: December 19, 2014, 09:55:07 AM »

Hi,
I have a panel; it contains several jeasyui objects : textbox, datebox, combobox, linkbuttons etc etc.

The objects are added at runtime so I do not know which objects there will be in.

Now I want to disable all the objects into the panel.

As I said, The problem is that I don't know how many and what type of objects I have.

I tried with:
Code:
$('#myPanel').find('*').prop('disabled',true) 

It works for all objects except the   linkbutton: this implies that the combo arrows remains active.
http://jsfiddle.net/korenanzo/c3vehtL2/

Is there another way ?

Thanks,

RIc
« Last Edit: December 19, 2014, 09:57:37 AM by korenanzo » Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: December 19, 2014, 05:39:33 PM »

Please try this updated example
http://jsfiddle.net/c3vehtL2/1/
Logged
korenanzo
Guest
« Reply #2 on: December 22, 2014, 01:25:53 AM »

Hi jarry,
this is nice but dos not work for linkbuttons.
I tried adding 'linkbutton' on the plugins array but it's  not enough

http://jsfiddle.net/c3vehtL2/2/
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #3 on: December 22, 2014, 03:22:09 PM »

You can call 'disable' method to disable the linkbutton components. If you want to prevent from do any thing with all the panel's elements, another alternative solution to solve this issue is to display a mask layer over the panel .
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!