This is a migrated thread and some comments may be shown as answers.

Disable spacebar from checking checkboxes

2 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 03 Apr 2014, 03:23 PM
I have a TreeView with checkboxes turned on and each child node has a datavalue and a textbox.  When a user types in the textbox, each time she hits the spacebar, the checkbox on that node and each parent node.  I need to disable this behavior.  Ideally, I would just disable the toggling to the checkboxes on spacebar.  Does anybody have any idea how to accomplish this?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 04 Apr 2014, 05:42 AM
Hi Charles,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

ASPX:
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true">
    <Nodes>
        <telerik:RadTreeNode Text="Node1">
            <Nodes>
                <telerik:RadTreeNode Text="Node1.1">
                </telerik:RadTreeNode>
                <telerik:RadTreeNode Text="Node1.2">
                </telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
    <NodeTemplate>
        <telerik:RadTextBox ID="RadTextBox1" runat="server">
        </telerik:RadTextBox>
    </NodeTemplate>
</telerik:RadTreeView>

Please provide your code if it doesn't help.
Thanks,
Shinu.
0
Quinn
Top achievements
Rank 1
answered on 25 Jul 2019, 08:33 PM

This might be relevant

https://docs.telerik.com/devtools/aspnet-ajax/controls/listbox/troubleshooting/space-is-ignored-in-textbox-placed-in-itemtemplate

 

Tags
TreeView
Asked by
Charles
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Quinn
Top achievements
Rank 1
Share this question
or