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

Check Box not check when we enter the space in WPF Telerik Treeeview

1 Answer 124 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pri
Top achievements
Rank 1
Pri asked on 26 Dec 2013, 03:01 PM
Hi,

We  are using Telerik TreeView in which checkbox have been added. When we enter the space bar, check box is not checked.
But when we enter three times space bar then checkbox will be checked.
The same scenario, when we trying to simple WPF tree view control all working as well. But in Telerik Treeview we have noticed, while entering the space bar in first hit Index will be focused, in second hit focus will be lost and when we enter third time space, the checkbox will be checked.
NOTE: In our treeview control have not child items of their parents.
 I have tried lots but no effect....

Please help Is it either Telerik Treeview issue or we are missing something.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 31 Dec 2013, 01:30 PM
Hello Pri,

Unfortunately I was not able to reproduce this behavior using our latest assemblies. I attached a sample solution where I defined two separate RadTreeView components. The firs one is declaratively defined in XAML and therefore it uses the built-in CheckBox support of the component. However, as the built-in CheckBox logic is designed to work only in a declaratively defined RadTreeView, if you have data-bound the ItemsSource of the component to a business collection, then I would recommend defining a  CheckBox in the ItemTemplate of the tree.

In both cases the CheckBoxes work as expected and they can be checked/unchecked on a single stroke of the space bar. Please have a look at the attached solution and let me know if it works for you or if I missed anything.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TreeView
Asked by
Pri
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or