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

modify column names in header context menu

3 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
laura
Top achievements
Rank 1
laura asked on 18 Oct 2017, 07:25 PM

I have a grid with Column Groups.  The columns within each group have the same name (HeaderText)

something like :

    Contract                  Non-Contract

Total    Pending         Total    Pending

 

My problem comes when I display the Context Menu.       

The list :

Total

Pending

Total

Pending

 

What I can't figure out is how to identify each so I can modify what is displayed. 

In the ContextMenu_ItemCreated event, I can determine that I have "Pending" for example, but not which one.

Is there any way to determine the ColumnGroupName name at that point?  Ideally I would use that.

 

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Oct 2017, 06:34 AM
Hello Laura,

You can achieve this requirement using a client-side approach. Please check the 2 menu methods implementation provided in this article:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Filtering/reduce-the-filter-menu-options

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
laura
Top achievements
Rank 1
answered on 27 Oct 2017, 12:16 AM
This seems only to address modifying the items that appear in the context menu.     What I need to do is capture and modify the *column* names in the *column* list.  
0
Eyup
Telerik team
answered on 31 Oct 2017, 05:16 PM
Hello Laura,

I suggest that you open a formal support ticket with this requirement so we can prepare a runnable sample based on your exact scenario and send it to you.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
laura
Top achievements
Rank 1
Answers by
Eyup
Telerik team
laura
Top achievements
Rank 1
Share this question
or