Nov 16, 2011, 8:12 AM
[CLOSED] Dynamic Store: undefined error at client side
Hi folks,
this piece of code ...
Cheers!
this piece of code ...
private void Core_BuildStore(ComboBox o)
{
JsonReader j = new JsonReader();
j.Fields.Add("Key", RecordFieldType.Int);
j.Fields.Add("Text", RecordFieldType.String);
j.Fields.Add("ValueCode", RecordFieldType.String);
Store xStore = new Store();
xStore.ID = "Store_WDL_FICH";
xStore.Reader.Add(j);
xStore.DataSource = my dynamic List<T> ;
xStore.DataBind();
o.ValueField = "Key"; // "ValueCode";
o.DisplayField = "Text";
o.Store.Add(xStore);
}
raises error "undefined Store_WDL_FICH" at client side:Store_WDL_FICH.callbackRefreshHandler(response, {serviceResponse: {success:true,data:{data:[{"Key":0,"Text":"PLANTILLA AUTORIZADORES.HTML","ValueCode":"PLANTILLA AUTORIZADORES.HTML"},{"Key":1,"Text":"PLANTILLA USUARIOS.HTML","ValueCode":"PLANTILLA USUARIOS.HTML"}], total: 0}}}, Store_WDL_FICH, o.eventType, o.action, o.extraParams)
May you help me what is wrong?Cheers!
Last edited by Daniil; Nov 18, 2011 at 5:40 PM.
Reason: [CLOSED]