Hi,
I have a treeview inside a combobox, and i have hooked up a javasript that uncheckes any previus nodes, according to this article,
http://www.telerik.com/help/aspnet/treeview/tree_unchecknodebycheckinganothernode.html
But i cant get the script working, could it be becouse of the treeview being inside of a panelbar and/or a combobox, and if so, would anyone have a solution for this?
I have a treeview inside a combobox, and i have hooked up a javasript that uncheckes any previus nodes, according to this article,
http://www.telerik.com/help/aspnet/treeview/tree_unchecknodebycheckinganothernode.html
But i cant get the script working, could it be becouse of the treeview being inside of a panelbar and/or a combobox, and if so, would anyone have a solution for this?
<asp:Content ID="Content3" ContentPlaceHolderID="phContent" Runat="Server"> <script type="text/javascript" language="javascript"> var oldNode; function UpdateStatus(node) { if(oldNode != null) { oldNode.UnCheck(); } node.Check(); oldNode = node; } </script> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> </telerik:RadAjaxManagerProxy> <table cellspacing="0" width="100%"> <%-- Om man är inloggad som Admin ska man komma direkt till Steg 2 --%> <tr align="center"> <td align="center" style="padding-top:100px;"> <telerik:RadPanelBar ID="pbCaseRegistration" Runat="server" Skin="Windows7" Width="500px" ExpandMode="SingleExpandedItem"> <Items> <telerik:RadPanelItem runat="server" Text="1 - Ärendeinformation" Expanded="true"> <Items> <telerik:RadPanelItem runat="server" Value="panCaseinfo"> <ItemTemplate> <table class="text" style="padding:10px;" cellspacing=0 width=100%> <tr> <td align=center> <asp:Image ID="imgCaseType" runat="server" ImageUrl="images/infoIcon2.jpg" /><asp:Label ID="Label1" runat="server" Text="Ärendetyp"></asp:Label><br /> <telerik:RadComboBox ID="cmbCaseType" runat="server" Skin="Windows7" Height="160px" Style="vertical-align: middle;" Width="225px"> <ItemTemplate> <div id="div1"> <telerik:RadTreeView ID="tvCaseType" runat="server" CheckBoxes="True" Height="160px" Width="100%" AfterClientCheck="UpdateStatus"> </telerik:RadTreeView>