ateodorescu / mzExt

Plugins and extensions for Extjs 4.x
MIT License
50 stars 31 forks source link

Deprecated grid.addEvents #8

Open PodviaznikovPavlo opened 9 years ago

PodviaznikovPavlo commented 9 years ago

Hello, could you fix that ?

        me.grid.addEvents(
            /**
            * @event groupchange
            * @param {Ext.ux.grid.plugin.GroupingPanel} panel
            * @param {Array} groupers
            */
            'groupchange',

            /**
            * @event groupsort
            * @param {Ext.ux.grid.plugin.GroupingPanel} panel
            * @param {Array} groupers
            */
            'groupsort',

            /**
            * @event showpanel
            * @param {Ext.ux.grid.plugin.GroupingPanel} panel
            */
            'showgroupingpanel',

            /**
            * @event hidepanel
            * @param {Ext.ux.grid.plugin.GroupingPanel} panel
            */
            'hidegroupingpanel'
        );
ateodorescu commented 9 years ago

What do you mean by that?

PodviaznikovPavlo commented 9 years ago

Well, i have such error "Ext.util.Observable#addEvents" is deprecated. I need to use your plugin, but there is a such error when i`m trying to load a page.

Psychokrameur commented 9 years ago

Hello,

Juste remove them. And if you want to do it properly, take the comment and bring them back at the top of the class (for documentation purpose).

Regards

2015-04-15 10:07 GMT+02:00 Pavel Podviaznikov notifications@github.com:

Well, i have such error "Ext.util.Observable#addEvents" is deprecated. I need to use your plugin, but there is a such error when i`m trying to load a page.

— Reply to this email directly or view it on GitHub https://github.com/ateodorescu/mzExt/issues/8#issuecomment-93252849.

PodviaznikovPavlo commented 9 years ago

@Psychokrameur thanks))

PodviaznikovPavlo commented 9 years ago

view.addTableTpl(me.tableTpl).groupingFeature = me;

I have a problem with such method addTableTpl. I get Uncaught TypeError: undefined is not a function.

This is inside of init function of MultiGrouping.js. I cant find that method anywhere.

ateodorescu commented 9 years ago

@PavelPodviaznikov What extjs version do you use? The plugin was only tested with 4.2.1.

PodviaznikovPavlo commented 9 years ago

@ateodorescu 5.0

ateodorescu commented 9 years ago

The plugin doesn't work with ExtJS 5.x. The grid component is quite different than in 4.2.x and the stores are completely different. Sorry.

PodviaznikovPavlo commented 9 years ago

@ateodorescu oh, thanks. too bad.