modify column names in header context menu

4 posts, 0 answers
  1. laura
    laura avatar
    11 posts
    Member since:
    Dec 2015

    Posted 18 Oct 2017 Link to this post

    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.

     

  2. Eyup
    Admin
    Eyup avatar
    3817 posts

    Posted 23 Oct 2017 Link to this post

    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.
  3. laura
    laura avatar
    11 posts
    Member since:
    Dec 2015

    Posted 26 Oct 2017 in reply to Eyup Link to this post

    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.  
  4. Eyup
    Admin
    Eyup avatar
    3817 posts

    Posted 31 Oct 2017 Link to this post

    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.
Back to Top