I found this code on this forum, but it had some problems when I tried to use. I made some changes to fix it to work when the group field is a date and when the group field is boolean. The changes were done just in the multiGroupingView, in the doRender function.

// if state is defined use it, however state is in terms of expanded
// so negate it, otherwise use the default.
var isCollapsed = typeof this.state[gid] !== 'undefined' ?
!this.state[gid] : this.startCollapsed;

// As the default onLoad to refocus on the first row has been disabled,
// This has been added so if a load does happen, and its an initial load
// it refocuses. If this is a refresh caused by a sort/group or a new page
// of data being loaded, it does not refocus
this.store.on("load", function(r,o) {
if(o&&o.initial==true)
Ext.ux.MultiGroupingView.superclass.onLoad.call(this);
}, this.view);
}

Since this code is not checked in and there are several versions floating around, it would be nicer to get your fixes as a patch.

Thanks,

trvd1707

31 Oct 2011, 5:15 AM

I don't know how to do that.

yyogev

31 Oct 2011, 5:38 AM

In Unix/Linux, a simple "diff -u file1 file2" would produce the required output, where file1 contains the code before the change, and file2 has the code after the change.
In Windows, you can use GNU Diffutils (http://www.gnu.org/software/diffutils/diffutils.html).

tsreenath1985

6 Feb 2012, 3:16 AM

Hi,
I am new to ExtJS. I am using ExtJS 4. I am trying to implement Multigrouping. Could you please provide me a working code of multigrouping which i can run it on my pc. thanks.

yyogev

6 Feb 2012, 3:32 AM

Hi,
I am new to ExtJS. I am using ExtJS 4. I am trying to implement Multigrouping. Could you please provide me a working code of multigrouping which i can run it on my pc. thanks.

Please read the posts above: the multigrouping user extension was written for ExtJS 2. and later fixed so it can work on ExtJS 3. It does not work on ExtJS 4.
If you do decide to take a shot at making it work on ExtJS, may the force be with you!. I would recommend to create a new extension based on the ExtJS 4 Ext.grid.feature.Grouping, rather than trying to fix the existing extension.