How to use both RadioButton and Checkbox in a RadTreeView

2 posts, 0 answers
  1. Nidhi
    Nidhi avatar
    1 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post

    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 !!!!
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top