-
3 Jan 2013 8:16 AM #1
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
-
3 Jan 2013 11:47 AM #2
in fact, how would you override anything, that you can't promote to class?
-
7 Jan 2013 6:24 AM #3
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.
-
7 Jan 2013 11:36 AM #4
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
-
7 Jan 2013 12:52 PM #5
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!
-
7 Jan 2013 1:39 PM #6
Been around for quite some time
Aaron Conran
@aconran
Sencha Architect Development Team
-
7 Jan 2013 2:33 PM #7
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.


Reply With Quote