Results 1 to 10 of 12

Thread: Custom column header menu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2011
    Location
    NORWAY
    Posts
    112
    Vote Rating
    1
      0  

    Default Custom column header menu

    Hi,

    Is there any possibilty of adding a custom menu for the column header?
    custom_menu.jpg

    Frank

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    391
      0  

    Default

    Yes. Take a look at the code for Ext.grid.feature.Grouping.

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2011
    Location
    NORWAY
    Posts
    112
    Vote Rating
    1
      0  

    Default

    hmm

    Could you please ellaborate? Perhaps provide a little example.. can't say I fully understand how to do this.

    Frank
    Thanks for your reply

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    391
      0  

    Default

    Ext.grid.feature.Grouping modifies the column menu to add in some new entries. It is an example. The method injectGroupingMenu would be a sensible place to start.

  5. #5
    Ext JS Premium Member
    Join Date
    Jan 2011
    Location
    NORWAY
    Posts
    112
    Vote Rating
    1
      0  

    Default

    So the basic idea is to create a feature like the grouping feature, and inject it into the menu?

  6. #6
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    391
      0  

    Default

    Wouldn't necessarily need to be a feature. A plugin would probably do.

    The way it's done in the Grouping feature isn't necessarily the only way to do it but it proves it can be done. Once you've studied how it does it you should hopefully have enough knowledge of the relevant code to figure out what works best for whatever it is you're trying to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •