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

Change "Master Template" text in search row menu

2 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 22 Oct 2018, 03:14 PM

On the search row, there is an options menu. Under the menu section "search in columns", there is a header with the text "Master Template".

Is there a way to change this text to be the dependent on the current grid? I've found I can name the child templates using the caption property, but I haven't found anything for the master template.

Telerik version is 2018.3.1016.40. Application is for windows 10, .NET 6.4.1

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 23 Oct 2018, 09:34 AM
Hello William,

You can use the ContextMenuOpening event to change the text of the item. Here is an example:
private void RadGridView1_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e)
{
    if (e.ContextMenuProvider is GridSearchCellElement)
    {
        var item = e.ContextMenu.Items[0] as RadMenuItem;
        item.Items[0].Text = "My Grid Name";
    }
}

Should you have any other questions do not hesitate to ask.

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
William
Top achievements
Rank 1
answered on 23 Oct 2018, 10:21 AM
This works perfectly. Thank you!
Tags
GridView
Asked by
William
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
William
Top achievements
Rank 1
Share this question
or