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

programatic treeview creation with check boxes?

7 Answers 94 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Loring Vogel
Top achievements
Rank 1
Loring Vogel asked on 26 Jun 2009, 06:34 PM
I am trying to creat a 2 tier tree view where the first tier has regular nodes and the second tier has check box nodes.

It appears that the isCheckBoxEnabled property is read only. 

How can I accomplish this task?

7 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 01 Jul 2009, 06:36 AM
Hello Loring Vogel,

I replied to the same questions in your previous ticket :Ticket ID: 222970.

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Shaun
Top achievements
Rank 1
answered on 19 Jul 2009, 03:48 PM
Can you enlighten the rest of us how this can be achieved please?

Thanks

Shaun
0
Bobi
Telerik team
answered on 20 Jul 2009, 01:14 PM
Hello Shaun,

 We apologize for the caused inconvenience.
This issue will be fixed  in our SP1 release which is scheduled for the next week.

Best wishes,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Shaun
Top achievements
Rank 1
answered on 20 Jul 2009, 06:31 PM
Any chance of a prerelease of this as I need to put together a demo that replcates a Windows Form application which was done with Infragistics controls - I am trying to persuade the client to go with Telerik this time, so having this sorted for the demo early next week would be great!

Thanks

Shaun
0
Bobi
Telerik team
answered on 21 Jul 2009, 08:15 AM
Hello Shaun,

We will send you a custom build as soon as the issue is fixed so by the end of this week you will have the fixed assemblies.

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Shaun
Top achievements
Rank 1
answered on 28 Jul 2009, 07:04 AM
Hi,

I have not yet heard from you with respect to the updated controls, so I am still not able to get a tree wiorking as required.

I have directly emailed support@telerik.com with full details of what it is I am after so they can reply to me and confirm that the RadTreeView can do what I need it to.

Please can you see that I get a reply on this email asap as I need to make a decision on the controls to use and time is running out.

Thanks,

Shaun
0
Bobi
Telerik team
answered on 28 Jul 2009, 09:18 AM
Hi Shaun,

We deeply apologize for the delay and the caused inconvenience.

Please find attached a sample project that shows how to accomplish the desired functionality.

We added a new property OptionType which is used in order to set the desired state of an item.
For example  you can set OptionType to:
                    None            -> TreeViewItem with no check box and no radio button
                    CheckList    -> TreeViewItem with checkbox
                    OptionList    -> TreeViewItem with radiobutton

Take a look at the following example:

<telerik:RadTreeView x:Name="tree" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList">
            <telerik:RadTreeViewItem Header="Item1">
                <telerik:RadTreeViewItem Header="Item 1.1" OptionType="None"/>
                <telerik:RadTreeViewItem Header="Item 1.2" />
                <telerik:RadTreeViewItem Header="Item 1.3" />
            </telerik:RadTreeViewItem>
            <telerik:RadTreeViewItem Header="Item 2" ItemsOptionListType="OptionList">
                <telerik:RadTreeViewItem Header="Item 2.1" />
                <telerik:RadTreeViewItem Header="Item 2.2" OptionType="None"/>
                <telerik:RadTreeViewItem Header="Item 2.3" OptionType="CheckList"/>
                <telerik:RadTreeViewItem Header="Item 2.4" />
            </telerik:RadTreeViewItem>
            <telerik:RadTreeViewItem Header="Item 3" />
            <telerik:RadTreeViewItem Header="Item 4" OptionType="None"/>
            <telerik:RadTreeViewItem Header="Item 5" />
        </telerik:RadTreeView>

If you want the child tire to have a specific OptionType for all items then you can use ItemsOptionListType  property setting it to the parent item.

<telerik:RadTreeViewItem Header="Item 2" ItemsOptionListType="OptionList">
                <telerik:RadTreeViewItem Header="Item 2.1" />
                <telerik:RadTreeViewItem Header="Item 2.2" />
                <telerik:RadTreeViewItem Header="Item 2.3" />
                <telerik:RadTreeViewItem Header="Item 2.4" />
            </telerik:RadTreeViewItem>

I hope that this will help you. Please let us know if you have any other questions or any difficulties in implementing your functionality.
We will have internal build at the end of this week so we will let you know when the officiol build is released.

Kind regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Loring Vogel
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Shaun
Top achievements
Rank 1
Share this question
or