Hy, is it possible to provide data of a directstore to a groupingview?
the docs say that groupingview needs a groupingstore. anyway to connect those two?
Printable View
Hy, is it possible to provide data of a directstore to a groupingview?
the docs say that groupingview needs a groupingstore. anyway to connect those two?
Use a GroupingStore along with a DirectProxy.
Here's an example:
PHP Code:this.directStore = new Ext.data.GroupingStore(
{
proxy: new Ext.data.DirectProxy(
{
directFn: MyFunction
}),
autoLoad:
{
params:
{
start: 0,
limit: 10
}
},
baseParams:
{
filter: this.GetFilter()
},
reader: this.reader,
sortInfo: {field: 'ClosedDate', direction: "ASC"},
groupField: 'ProcessId',
groupDir: 'DESC'
});