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

AllowSearchRow Dropdown Is Empty

3 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 14 May 2019, 04:28 PM

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?

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 May 2019, 11:17 AM
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.
0
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 15 May 2019, 05:22 PM

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.

 

0
Dimitar
Telerik team
answered on 16 May 2019, 08:11 AM
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.
Tags
GridView
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or