The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

Binding data to DropdownField control

  1. #1

    Binding data to DropdownField control

    Hello Team Members,

    I am very new to Ext.Net and just starting by trying some proof of concepts. I am an developer, hence when working on i am searching for some control properties that we have in, 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, 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 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!

  2. #2

    DropDownField is a control which shows popup widget under own field

    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
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Thanks vladmir.

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

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

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, 8: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, 1: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, 4:35 PM
  4. Data Binding
    By Deepak in forum 1.x Help
    Replies: 3
    Last Post: Nov 04, 2010, 11:27 AM
  5. Combobox not binding data
    By Satyanarayana murthy in forum Open Discussions
    Replies: 0
    Last Post: Jun 27, 2009, 1:22 PM

Posting Permissions