Jun 19, 2012, 8:17 AM
[CLOSED] Ext .NET Override method best practice?
Hi,
I need to override createSortFunction method in Ext.util.Sorter.
Dummy example:
In Ext.NET1.x, if applied in the Ext.onReady worked well.
The idea is not having to replicate the call on all screens BeforeRender.
Is there any way to replicate the behavior Ext.NET 2.x?
Thanks,
I need to override createSortFunction method in Ext.util.Sorter.
Dummy example:
Ext.util.Sorter.override({
constructor: function () {
debugger;
alert('1,2,3...');
},
createSortFunction: function (sorterFn) {
debugger;
var me = this,
property = me.property,
direction = me.direction || "ASC",
modifier = direction.toUpperCase() == "DESC" ? -1 : 1;
alert('croak!');
return function (o1, o2) {
return modifier * sorterFn.call(me, o1, o2);
};
}
});
I tried calling the override in different events of the application, but can not find the event before rendering ExtJS components.In Ext.NET1.x, if applied in the Ext.onReady worked well.
The idea is not having to replicate the call on all screens BeforeRender.
Is there any way to replicate the behavior Ext.NET 2.x?
Thanks,
Last edited by Daniil; Jun 21, 2012 at 9:51 PM.
Reason: [CLOSED]