EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 3 of 3

Thread: Binding data to DropdownField ext.net control

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    2

    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
    Ext.NET - Dev Team Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Russia
    Posts
    15,379
    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
    Ext.NET, Inc.
    Development Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    2
    Thanks vladmir.

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

    Code:
    <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, 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