djudjublondin
31 Aug 2007, 12:34 AM
Hi,
I am having difficulties the "load()" function of an Ext.data.Store object.
Let say that
ds = new Ext.data.Store(
{
proxy: proxy,
reader: reader,
}
);
I would like to perform an action using a function of my own called "buildNodeInfo()" when data loading is finished. So far I have tried two way of implementing it with no success:
ds.on('load', buildNodeInfo()); //method 1
and
ds.load({
callback : buildNodeInfo() //method 2
});
both of these method ran the function "buildNodeInfo()" before the end of the loading process (which can last 4 sec sometimes).
Does anyone has clue ?
Cheers
Dju
I am having difficulties the "load()" function of an Ext.data.Store object.
Let say that
ds = new Ext.data.Store(
{
proxy: proxy,
reader: reader,
}
);
I would like to perform an action using a function of my own called "buildNodeInfo()" when data loading is finished. So far I have tried two way of implementing it with no success:
ds.on('load', buildNodeInfo()); //method 1
and
ds.load({
callback : buildNodeInfo() //method 2
});
both of these method ran the function "buildNodeInfo()" before the end of the loading process (which can last 4 sec sometimes).
Does anyone has clue ?
Cheers
Dju