Feb 03, 2010, 6:55 AM
combobox not load data
hi :)
my combobox not load data, any solutons ?
this is my code:
my combobox not load data, any solutons ?
this is my code:
protected void Page_Load(object sender, EventArgs e)
{
storeClienti.DataSource = asudBusiness.clienti.clsClienti.getDataDDL();
storeClienti.DataBind();
}
<ext:Store ID="storeClienti" runat="server" AutoLoad="true">
<Reader>
<ext:JsonReader ReaderID="IDUser">
<Fields>
<ext:RecordField Name="IDUser" />
<ext:RecordField Name="cliente" />
</Fields>
</ext:JsonReader>
</Reader>
<Listeners>
<LoadException Handler="Ext.Msg.alert('Load unit states failed', (!Ext.isEmpty(e) && !Ext.isEmpty(e.message)) ? e.message : response.statusText);" />
</Listeners>
</ext:Store>
<ext:ComboBox ForceSelection="true" runat="server" ID="IDUser" ValueField="IDUser"
ReadOnly="true" StateID="storeClienti" Mode="Local" TypeAhead="true" AllowBlank="false"
Selectonfocus="true" Resizable="true" DisplayField="cliente" FieldLabel="Cliente">
</ext:ComboBox>
regards