Hi,
I neet to disable a richselect view component. Setting disabled, or readonly, data to true, the component remains enabled. So how can I do it. In this case, I don t want to hide it.
Thanks you
Hi,
I neet to disable a richselect view component. Setting disabled, or readonly, data to true, the component remains enabled. So how can I do it. In this case, I don t want to hide it.
Thanks you
Hi,
readonly and disabled attributes are not applied to select. If you want to disable opening list, you may remove popup config property after the richselect created .Here is the example:
[code]dhx.ui({
view:“form”,
elements:[
{view:“richselect”, id:“myselect”,…},
…
]
});
function disable(id){
$$(id).define(“mypopup”,$$(id).config.popup);
$$(id).define(“popup”,false);
}
function enable(id){
$$(id).define(“popup”,$$(id).config.mypopup);
}
/to disable “myselect” richselect/
disable(“myselect”);[/code]