PDA

View Full Version : loading data from database into a grouping store



adibhagra
11 Oct 2009, 5:29 AM
hey guys,

i have a grouping store into which i want to load data from the database:



store: new Ext.data.GroupingStore({
reader: reader, // name of the object to which i have assigned my json reader
proxy : new Ext.data.HttpProxy({
url: '/kohana/index.php/manage',
method: 'GET'
}),

sortInfo:{field: 'age', direction: "ASC"},
groupField:'company',

}),


i have specified the url here from where data is to be retrieved, but it never calls that url. is there someother way that i am supposed to load my store.


regards,

ice

httpdotcom
11 Oct 2009, 5:47 AM
This seems to only be a snippet of code. Might want to set "autoload: true" to see if it does something.

adibhagra
11 Oct 2009, 5:53 AM
yeah .. thanks

Jack9
12 Oct 2009, 9:07 AM
var myStore = new Ext.data.GroupingStore({
reader: reader, // name of the object to which i have assigned my json reader
url: '/kohana/index.php/manage',
method: 'GET'
sortInfo:{field: 'age', direction: "ASC"},
groupField:'company',
});
...
store: myStore,
...
myStore.load();