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

How to use both RadioButton and Checkbox in a RadTreeView

1 Answer 172 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 09 Mar 2012, 01:31 PM
Hi,

I need to use a radio button just beside the rendered checkbox in a radtreeview.

I show a list of products in the treeview so that the users can select multiple products and make a set, but at the same time user needs to select a single product as the most favourite product. Using radio button in the treeview to identify the favourite product is a client requirement.

Could you please help me out of it. I dont even know whether the requirement has got a feasible solution. Help !!!!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Mar 2012, 06:45 AM
Hello,

One suggestion is you can put the RadioButton in NodeTemplate as shown below.
aspx:
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true">  
  <Nodes>
   <telerik:RadTreeNode Text="Parent1">
    <NodeTemplate>
     <asp:RadioButton ID="RadioButton1" runat="server" Text="Text"  />
    </NodeTemplate>
   </telerik:RadTreeNode>
  </Nodes>
</telerik:RadTreeView>

Thanks,
Princy.
Tags
TreeView
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or