1. #1
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default override on grid feature

    override on grid feature


    I need to create an override on a feature of a grid. I can promote the grid to class, and create an override, but in this case, I really need to promote the grid feature to class, then create override...
    is this possible, and how?

    specifically, I need to override the onGroupClick: function of the Grouping feature, so I can disable the collapse/expand of the grouping header.
    I'm adding 4.1.3 functionality to 4.0.7

  2. #2
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default


    in fact, how would you override anything, that you can't promote to class?

  3. #3
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Exclamation


    I have to get this done, and since there is no premium help for architect, I need someone from sencha to comment.

    Even if I have to do this outside of architect...
    If I do have to go outside of architect, it would be nice to have a pointer inside architect, so every timeI make edits in architect, I wouldn't have to go into eclipse, and fix the override.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,087
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Add an onGroupClick function to your grouping feature.

    Start an Ext Project
    Drag out a Grid
    Add a grouping feature to the grid
    Select the grouping feature in the inspector
    Click the + to the right of "Functions" in the config grid
    Click the drill down arrow ->
    name the function onGroupClick
    Give it the proper params: view, rowElement, groupName, e

    Give it the implementation you want.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default


    that is awesome!!!
    I had no idea you could override built in functions that way....is this new?
    That tells me I may have overrides in places, where this would have worked...

    I get the nice little blue exclamation telling me it overrides parent function or config.

    that was so eaasy, just the way I like it!
    thanks aaron!

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,087
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Been around for quite some time
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  7. #7
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default


    we need a tips and tricks section for architect :-)
    although, I would have looked at it when getting started, and been ignorant, as it is updated.

Thread Participants: 1