View Full Version : Accessing subclass methods from super

29 Aug 2013, 10:45 PM
Hi Everyone,

Is there a way I can access the sub class methods from super class in ExtJs4? Sorry If I am putting this question in wrong forum. I have tried using Ext.ClassManager.getClass().

Please help.


29 Aug 2013, 10:46 PM
Whatever you're doing, it's not the right approach. A superclass shouldn't have knowledge of subclass specifics.

Perhaps describe what you're trying to achieve.

29 Aug 2013, 10:57 PM
Thanks for you quick response. I anticipated the same thing. My problem is with classes filter.js and DateFilter.js

If I select After checkbox in the grid column filter then it auto selects filter checkbox. But if I uncheck the filter checkbox then it keep the after checkbox checked.

Selecting checkboxes is dependent on onMenuSelect() method of DateFiilter.js which finally calls setActive() method of Fiilter.js class

So I have requirement to uncheck datefilter checkbox in case filter checkbox has been deselected.

I am using ExtJS4.0 and I thought of calling some custom method from setActive() method of Filter.js to uncheck the before/after/on filter.

Please let me know your suggestions.