Hi,
i am using a RadTreeview with CheckBoxes within a RadComboBox. Everything works fine, but the Combox collapses every time I Check a Node. I found a solution using the StopPropagation Function in JavaScripting preventing this behaviour, but now i am facing another problem: The Nodes I had checked are not checked anymore when submitting the form.
How can I prevent the ComboBox from collapsing AND persist the Checked States and reading them in code behind after submitting the form?
Following Code I use:
i am using a RadTreeview with CheckBoxes within a RadComboBox. Everything works fine, but the Combox collapses every time I Check a Node. I found a solution using the StopPropagation Function in JavaScripting preventing this behaviour, but now i am facing another problem: The Nodes I had checked are not checked anymore when submitting the form.
How can I prevent the ComboBox from collapsing AND persist the Checked States and reading them in code behind after submitting the form?
Following Code I use:
function StopPropagation(e) { if (!e) { e = window.event; } e.cancelBubble = true; }<rad:RadComboBox ID="ddYearQuarterMonthDate" runat="server" Width="100%" Height="350px"> <ItemTemplate> <div id="div1" onclick="StopPropagation(event);"> <rad:RadTreeView ID="radTreeViewYearQuarterMonthDate" runat="server" MultipleSelect="True" CheckBoxes="true" TriStateCheckBoxes="false" CheckChildNodes="false" onclick="EmptyRadDatesAndRblTimespan();"> </rad:RadTreeView> </div> </ItemTemplate> <Items> <rad:RadComboBoxItem Text="" /> </Items> </rad:RadComboBox>