Hi,
I have a RadDropDownButton and am using the menum items as a checklist. The problem is I would like to keep the drop down open until the button is clicked again to allow the user to select multiple items.
Is this possible?
Thank you,
David
1 Answer, 1 is accepted
0
Accepted
Stefan
Telerik team
answered on 16 Feb 2012, 08:58 PM
Hi David,
Thank you for writing.
You can achieve the desired functionality by canceling the popup closing in the DropDownClosing event handler of DropDownButtonElement except when a flag raised in the MouseDown event of the DropDownButtonElement is true. Here is a sample:
public Form1()
{
InitializeComponent();
foreach (RadMenuItem item in radDropDownButton1.Items)
{
item.CheckOnClick = true;
}
radDropDownButton1.DropDownButtonElement.MouseDown += new MouseEventHandler(DropDownButtonElement_MouseDown);