combobox not load data

  1. #1

    combobox not load data

    hi :)

    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) &amp;&amp; !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"
                Select&#111;nfocus="true" Resizable="true" DisplayField="cliente" FieldLabel="Cliente">
            </ext:ComboBox>
    regards
  2. #2

    RE: combobox not load data

    Make sure this method:

    asudBusiness.clienti.clsClienti.getDataDDL()

    returns something. Otherwise it looks fine on the surface.
  3. #3

    RE: combobox not load data

    tank's i find my stupid error :(
    i not have pu storeID in combobox..

    regards

Similar Threads

  1. How to translate data to another at load??
    By nysyzp in forum 1.x Help
    Replies: 6
    Last Post: Dec 28, 2011, 12:42 AM
  2. load grid after draged data
    By krlos02 in forum 1.x Help
    Replies: 1
    Last Post: Sep 01, 2011, 3:28 PM
  3. [CLOSED] Stop treepanel to load data on page load
    By inayath in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 11, 2011, 10:17 AM
  4. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  5. Replies: 4
    Last Post: Nov 17, 2008, 8:16 AM

Posting Permissions