Bind the combobox dynamically

  1. #1

    Bind the combobox dynamically


    I want to bind the combo box dynamically using store plz help me out

    <ext:Store ID="StorePlace" runat="server" AutoLoad="true">
                    <ext:RecordField Name="Text" />
                    <ext:RecordField Name="Value" />
    <ext:ComboBox ID="cmbplace"  runat="server" FieldLabel="" TypeAhead="true" AnchorHorizontal="90%"
                                Mode="Local" ListAlign="left">
    cmbOccupation.StoreID = StorePlace.ID.ToString();
    Last edited by geoffrey.mcgill; Aug 19, 2010 at 8:46 PM. Reason: please use [CODE] tags
  2. #2

    Maybe just use .ClientID, and you shouldn't need to call .DataBind() on the ComboBox.


    cmbOccupation.StoreID = StorePlace.ClientID;
    In the ComboBox markup, you can just set .StoreID="StorePlace".

    Hope this helps.
    Geoffrey McGill

Similar Threads

  1. [CLOSED] How to bind a ComboBox RecordField in runtime?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 16, 2012, 12:50 PM
  2. [CLOSED] How to "bind" a ComboBox to a field in a FormPanel
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Jan 11, 2011, 10:22 AM
  3. Replies: 0
    Last Post: Nov 12, 2010, 2:52 AM
  4. Can't get a ComboBox to bind to a SqlDataSource
    By paul-2011 in forum 1.x Help
    Replies: 3
    Last Post: Aug 17, 2010, 6:15 PM
  5. Dynamically bind Toolbar items on Combo change
    By shankar in forum 1.x Help
    Replies: 2
    Last Post: Jul 07, 2010, 3:35 PM

Posting Permissions