The Ext.NET team is thrilled to announce the official release of Ext.NET 4, including the new Spreadsheet Selection Model, Triton Theme and Advanced Color Picker!

Binding data to DropdownField ext.net control

  1. #1

    Binding data to DropdownField ext.net control

    Hello Team Members,

    I am very new to Ext.Net and just starting by trying some proof of concepts. I am an asp.net developer, hence when working on ext.net i am searching for some control properties that we have in asp.net, but without any doubt i know both are different programming models.

    In this POC, i am using a DropDownField, and i have a datasource that contains one table with data OR i also have a List of Entity containing data that i want to bind to the DropDownField Control. In asp.net, we have a DataSource Property to which we can bind the data and the control shows the values.

    Can someone please tell me how can i bind my available datasources to the ext.net DropDownField control. As i am very new, i obviously dont have any examples that i can show. But i have just dropped the DropDownField control on my aspx page and trying to figure out how would i achieve this.

    I have downloaded the latest version of Ext.Net - 3.5 and installed the control library to my Visual Studio 2010 Professional Edition.

    Please help!

    thansks.
  2. #2
    Hi,

    DropDownField is a control which shows popup widget under own field
    http://examples1.ext.net/#/Form/DropDownField/Overview/
    http://examples1.ext.net/#/Form/Drop...alueText_Mode/

    It is not databound control because its logic depends from popup control

    I guess that you need to use ComboBox widget. ComboBox can work with a Store (Store is databound control which has DataSource and DataSourceID properties) or you can define Items for combo directly
    http://examples1.ext.net/#/Form/ComboBox/Overview/
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Thanks vladmir.

    In the DropDownField example, i saw the below code, what do these Listeners signify?

    <Listeners>
                                        <ItemClick Handler="#{Field2}.setValue(menuItem.text);" />
                                    </Listeners>

Similar Threads

  1. [CLOSED] Example of loading user control with data binding
    By jmcantrell in forum 1.x Premium Help
    Replies: 12
    Last Post: Aug 18, 2012, 7:01 AM
  2. [CLOSED] ComboBox in user control binding but not showing data
    By Digital.Dynamics in forum 2.x Premium Help
    Replies: 7
    Last Post: May 08, 2012, 12:09 PM
  3. [CLOSED] Data binding to NetTiers data entity objects
    By vadym.f in forum 1.x Premium Help
    Replies: 7
    Last Post: Apr 09, 2012, 3:35 PM
  4. Data Binding
    By Deepak in forum 1.x Help
    Replies: 3
    Last Post: Nov 04, 2010, 10:27 AM
  5. Combobox not binding data
    By Satyanarayana murthy in forum Open Discussions
    Replies: 0
    Last Post: Jun 27, 2009, 12:22 PM

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.