From: <Se...@us...> - 2010-09-24 02:06:53
|
Revision: 4763 http://jaffa.svn.sourceforge.net/jaffa/?rev=4763&view=rev Author: SeanZ Date: 2010-09-24 02:06:47 +0000 (Fri, 24 Sep 2010) Log Message: ----------- Modified to allow sortInfo to be an array of field/direction to be sorted. Modified Paths: -------------- trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js Modified: trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js =================================================================== --- trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js 2010-09-24 00:54:17 UTC (rev 4762) +++ trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js 2010-09-24 02:06:47 UTC (rev 4763) @@ -21,7 +21,12 @@ Ext.ux.grid.MultiGroupingStore = Ext.extend(Ext.data.GroupingStore, { constructor: function(config){ - Ext.ux.grid.MultiGroupingStore.superclass.constructor.apply(this, arguments); + var sortInfo = config.sortInfo || this.sortInfo; + Ext.ux.grid.MultiGroupingStore.superclass.constructor.apply(this, arguments); + if (Ext.isArray(sortInfo)) { + if (sortInfo.length==0) this.sortInfo = []; + else this.sortInfo = sortInfo; + } } /* ---------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |