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

[Solved] RadTreeview Multiple Select in RadComboBox

2 Answers 239 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 30 Jun 2009, 06:49 AM
I have a RadTreeview Control embeded in RadCombobox.
Checkboxes and Multiple select property of treeview is set to true.

When i select tree nodes by checking checkboxes corresponding to them everything works fine and i am able to select as many nodes as required.
But when i try to select the nodes by clicking the Node text radcombobx collapse after selection.
Hence i am not been able to select multiple nodes at a time.

Any workarounds,so that combobox remains open till all nodes are selected and closes on clicking outside the combobox.

Regards,
Amit

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2009, 07:16 AM
Hi Amit,

Try attaching OnClientDropDownClosing event to RadComboBox in order to cancel the dropdown closing if it is in focus so that it is possible to select multiple nodes in RadTreeView.

JavaScript:
 
<script type="text/javascript"
function OnClientDropDownClosing(sender, eventArgs) 
  if( sender._focused == true
  { 
    eventArgs.set_cancel(true); 
  } 
  else 
  { 
    eventArgs.set_cancel(false); 
  } 
</script> 

-Shinu
0
Amit
Top achievements
Rank 1
answered on 02 Sep 2009, 10:23 AM
Hi Shinu,

Thanks for help.The code mentioned works perfectly except in following scenerio:
If user click the arrow on dropdown(i.e. button used to expand dropdown) again after opening dropdown,dropdown should get closed.
But it doesn't.

any idea how to achieve this alongwith mentioned functionality.

Thanks.
Amit

Tags
General Discussions
Asked by
Amit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Amit
Top achievements
Rank 1
Share this question
or