AllowSearchRow Dropdown Is Empty

4 posts, 0 answers
  1. Martin Hamilton
    Martin Hamilton avatar
    36 posts
    Member since:
    Aug 2009

    Posted 14 May 2019 Link to this post

    I have a data bound grid that has the AllowSearchRow = True

    And, I have the AllowSearching Property set to true on a number of columns.

    But the Search in Columns Dropdown does not contain the checked list box - it's empty... actually it doesn't even drop down!

    What do I need to do to get the Master Template checked list box of columns to appear?

  2. Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 15 May 2019 Link to this post

    Hi Martin,

    I was not able to reproduce the observed behavior on my end. For convenience, I prepared a small sample, based on the information that you provided so far and attached it to this thread. 
    Could you please check it and let me know how it differs from your real setup?
     
    Thank you in advance for your patience and cooperation. 

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Martin Hamilton
    Martin Hamilton avatar
    36 posts
    Member since:
    Aug 2009

    Posted 15 May 2019 Link to this post

    I see what is happening.

    I have a right-click on the grid so I can open a custom menu.

    In order to get rid of the "Copy" menu option on right-click, I am setting the visibility of all items to collapsed. 

    Then, I load the custom menu...

    It appears that collapsing all items in the ContextMenuOpening event was also collapsing the menu items in the AllowSearchRow dropdown.

    Ok, mystery solved.... Now I'm just trapping for the Menu Option where the text = "Copy" and only collapsing that one.

    It would have been nice if the AllowSearchRow Context Menu Opening event - was a separate event.

     

  4. Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 16 May 2019 Link to this post

    Hello Martin,

    Yes, we are using one event for all context menus. You can use the following approach to distinguish the context menus: 
    private void RadGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
    {
        if (e.ContextMenuProvider is GridSearchCellElement)
        {
            return;
        }
        // all other code
    }

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top