HI!, Hope my TITLE is right... not pretty sure.....Is there a way i could achieve this and have the same functionality with this rather than doing checkboxes="true" because i will be using both radio button and checkbox. the controls depend on the parameter of the parent form in which for example when i call Form A. radiobutton will appear and when i call Form B checkbox will appear.
I could not implement the example we have here at the site and it only take effect when i enable checkboxes="true". i have successfully bind the labels with the database to the radtreeview but the two control event are not. hope you could help me out with this one.. been trying a lot of ways for days. :-(
below is a sample of my code hope you guys could understand it. :-)
thanks in advance and more power to telerik.......
.ACSX Code
<telerik:RadTreeView ID="_uscRadTrvSelectAuthority" runat="server" skin="Office2007" checkboxes="true" on>
<NodeTemplate > <asp:RadioButton ID="_uscRBtnSeleAuth" runat="server" Visible="false"/>
<asp:CheckBox ID="_uscCboxSeleAuth" runat="server" Visible="false"/> <asp:Label ID="_uscLblSeleAuth" runat="server"> </asp:Label>
</NodeTemplate>
<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> <ExpandAnimation Duration="100"></ExpandAnimation>
</telerik:RadTreeView>
.CS Code
string pfid = Request.Params["pfid"];
if (pfid == "Pop1")
{ ((System.Web.UI.WebControls.CheckBox).Node.FindControl("_uscCBoxSeleAuth")).Visible = true;
}
else if (pfid == "Pop2")
{ ((System.Web.UI.WebControls.RadioButton).Node.FindControl("_uscRBtnSeleAuth")).Visible = true;
}
((System.Web.UI.WebControls.Label)e.Node.FindControl("_uscLblSeleAuth")).Text = e.Node.Text;