EasyUI Forum
May 07, 2024, 01:01:22 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: PropertyGrid disabled editor text or textbox  (Read 7157 times)
arawak
Newbie
*
Posts: 15


View Profile
« on: August 29, 2014, 03:40:49 AM »

Hello there,

In a PropertyGrid, I use an editor such as 'text' and I want to make it disabled.

So in my editor, I added the option "
Code:
disabled: true
" but no results, I can always enter a value.

I tried with "textbox" is ok but if I change "
Code:
disabled: false
" I still can not enter a value.

Can you help me?

thank you
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 29, 2014, 06:06:12 AM »

How do you assign the 'disabled' property to the 'textbox' editor? Please check your code carefully, the code should look like this:
Code:
{"name":"department","value":"","group":"ID Settings","editor":{
"type":"textbox",
"options":{
"disabled":true
}
}},
Logged
arawak
Newbie
*
Posts: 15


View Profile
« Reply #2 on: August 29, 2014, 06:19:01 AM »

Below is my json return procedure:
Code:
[{"field":"serLibelle","name":"Libell\u00e9 Service "," value ":" Service 4","editor":{"type":"text","options":{"readonly":false,"disabled":false,"multiline":true,"editable":true}}}, 
{"field":"serCouleur","name":"Couleur","value":"","editor":{"type":"text","options":{"readonly":true,"disabled":true,"multiline":false,"editable":false}}}]
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: August 30, 2014, 04:56:57 AM »

The 'text' editor hasn't 'disabled' property, please use 'textbox' editor instead.
Logged
arawak
Newbie
*
Posts: 15


View Profile
« Reply #4 on: September 01, 2014, 04:57:26 AM »

Thank you for that clarification, everything works now
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!