Completed
Last Updated: 01 Jun 2020 15:47 by ADMIN
MHenkel
Created on: 10 Feb 2016 11:13
Category: TreeView
Type: Feature Request
5
Add a new property on RadTreeNode (server/client) for disabling only the CheckBox
At the moment when disabling a RadTreeNode on server/client side the complete node gets disabled with the CheckBox.
We had a use case where we would like the node to stay functional (collapsable/expandable/clickable/hover-effect) but only the checkbox to become disabled.
As this can't be achieved with the RadTreeView we had to build a work-around for that. Most likely people in need of this feature make a new HTML-variable to store/transmit/apply the state of the checkbox since the manipulation of the Checkboxes gets lost in a postback.

This would have to be implemented as a server/client-feature as it is with the enabled/disabled-state of the RadTreeNode.

Kind regards
1 comment
ADMIN
Peter Milchev
Posted on: 01 Jun 2020 15:47

Hello Ernst,

The TreeNodes have the Checkable property which will hide the checkbox if set to false which will allow the Node to be selected, expanded/collapsed but not checked.

<telerik:RadTreeView runat="server" RenderMode="Lightweight" CheckBoxes="true" ID="RadTreeView1">
    <Nodes>
        <telerik:RadTreeNode Text="Root 1" Expanded="true" Checkable="false">
            <Nodes>
                <telerik:RadTreeNode Text="Child 1.1" Checkable="false"></telerik:RadTreeNode>
                <telerik:RadTreeNode Text="Child 1.2"></telerik:RadTreeNode>
                <telerik:RadTreeNode Text="Child 1.3"></telerik:RadTreeNode>
                <telerik:RadTreeNode Text="Child 1.4"></telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>

The checkable property can be get/set on the client-side also via the node.get_checkable() and node.set_checkable(bool) methods.

Regards,
Peter Milchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.