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

I want when I click popup not closed

1 Answer 47 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
mohammad
Top achievements
Rank 1
mohammad asked on 25 Mar 2013, 03:51 AM
When I collapse or expanad popup is closed
I want when I click popup not closed
want the icon "+" clicked popup not closed
I'd click anywhere to close popup

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Mar 2013, 04:33 PM
Hello Mohammad,

Do prevent the drop down from closing when the expander is clicked, you should use the DropDownClosing event as follows:
void radMultiColumnComboBox1_DropDownClosing(object sender, RadPopupClosingEventArgs args)
{
    RadElement elementUnderMouse = this.radMultiColumnComboBox1.EditorControl.ElementTree.GetElementAtPoint(
        this.radMultiColumnComboBox1.EditorControl.TableElement.PointFromScreen(MousePosition));
    if (elementUnderMouse != null)
    {
        Console.WriteLine(elementUnderMouse);
        if (args.CloseReason == RadPopupCloseReason.Mouse && elementUnderMouse is GridExpanderItem)
        {
            args.Cancel = true;
        }
    }
}

I hope this helps.
 

Kind regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
MultiColumn ComboBox
Asked by
mohammad
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or