Hello,
I just came across an issue trying to enable/disable the Treeview control
It is declared this way :
<
telerik:RadTreeView
RenderMode
=
"Classic"
runat
=
"Server"
ID
=
"trProvince"
Height
=
"350"
CheckBoxes
=
"True"
TriStateCheckBoxes
=
"true"
CheckChildNodes
=
"true"
OnClientNodeClicked
=
"ClientNodeClicked"
Enabled
=
"False"
CssClass
=
"Province"
>
Next of it, there's a checkbox that allows to enable/disable it
Here's the JS doing that :
function
ToggleRow(sender, eventArgs) {
var
rowClass =
"."
+ sender.get_id().substring(3);
var
isChecked = sender.get_checked();
console.log(rowClass);
console.log(isChecked);
$(rowClass).each(
function
() {
$(
this
).each(
function
() {
var
element = $find($(
this
)[0].id);
console.log(element);
console.log(
"enabled :"
+ element.get_enabled());
if
(isChecked) {
element.enable && element.enable();
element.set_enabled && element.set_enabled(
true
);
}
else
{
element.disable && element.disable();
element.set_enabled && element.set_enabled(
false
);
}
});
});
}
It's working as in : When checkbox is checked, I can click the checkboxes in the TreeView, expand/collapse its node but it still has a "disabled" style (greyed)
How do I get it to remove the grey layer on the control?
Thank you
Telerik version : 2017.1.118