Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > MultiColumn ComboBox > popup close on filter row click

Not answered popup close on filter row click

Feed from this thread
  • Eastern avatar

    Posted on Oct 4, 2011 (permalink)

    Hello all,

    in 2011 Q1 winforms, i have a user control inherited from RadMultiColumnComboBox, and the filter row for inner radgrid is enabled.
    problem is when i click on the filter row, the popup close ! so i cannot get focus on the filter row textbox to type the filtering text .

    would you please tell me why this is occuring and how can i solve it ?

    Thank you,

    Reply

  • Boris avatar

    Posted on Nov 1, 2011 (permalink)

    Hi,
    I have the same problem.
    Do you have any solution for this problem?

    Thank you!

    Reply

  • Brad avatar

    Posted on Dec 9, 2011 (permalink)

    Hi, I have solved the problem with this code, when using a Form Level Multi Column Combo Box:
    /// <summary>
    /// Cancel MultiColumnComboBox Close on  heaader or filter field click
    /// </summary>
    private void MultiColumnComboBox_DropDownClosing(object sender, RadPopupClosingEventArgs args)
    {
        if ((sender as RadMultiColumnComboBox).SelectedIndex == -1)
        {
            args.Cancel = true;
        }
    }

    When using the  Multi Column Combo Box  Column in a GridView I use this code:

    /// <summary>
    /// Cancel MultiColumnComboBox Column Close on  header or filter field click
    /// </summary>
    private void radMultiColumnComboBox_Generic_PopupClosing(object sender, RadPopupClosingEventArgs args)
    {
        if ((sender as RadMultiColumnComboBoxElement).SelectedIndex == -1)
        {
            if ((sender as RadMultiColumnComboBoxElement).Rows.Count > 0)
                args.Cancel = true;
        }         
    }



    Reply

  • Ofer avatar

    Posted on Jan 31, 2012 (permalink)

    Hi Brand,
    I used your first code and it's good. thanks.
    But i wander way the don't fix it in Telerik.
    Any way the way to close the grid without selecting  any row is to click the combo itself.
    The problem is that if i click the filtering row i can't close the grid without selecting.
    Do you have solution for this?
    Thanks'
    Ofer. 

    Reply

  • Brad avatar

    Posted on Feb 20, 2012 (permalink)

    The problem is that if i click the filtering row i can't close the grid without selecting. Do you have solution for this? 

    I do not have a solution for this. This column is a required field in my program so it works well for me to force a selection. Without the extra check for some "possible selection" rows in the filtered RadGridView MultiColumnComboBox, user clicks could throw an exception that I couldn't handle and would crash my program.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > MultiColumn ComboBox > popup close on filter row click
Related resources for "popup close on filter row click"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]