how to Load values to textfields after combobox item selected

  1. #1

    how to Load values to textfields after combobox item selected

    Please anybody let me know, how to load values from database on to textfields and textarea controls after a selection of item in Combobox using Directevent/direct method or Listeners
  2. #2
    Hi @sunshineenterprises,

    Do you use WebForms?

    If so, then a ComboBox's Select DirectEvent + this code inside that DirectEvent's handler should work:
    this.TextField1.Text = "new text"; // read the text from the database
    this.TextArea.Text = "new text"; // read the text from the database
  3. #3
    means that i need to get the selected combobox value and using direct event i need to fetch the data from database to bind the textfields and textarea,

    is there any other way like load the data in the combobox model element like binding the fields of displaytext and valuefield of combobox?

    .Model(Html.X().Model()
                                        .Fields(
                                            Html.X().ModelField().Name("Customer_ID"),
                                            Html.X().ModelField().Name("Customer_Name")
                                        )
                                    )
    Thanks
    Last edited by Daniil; Jul 09, 2014 at 5:33 PM. Reason: Please use [CODE] tags
  4. #4
    Well, you could load everything that is required to the ComboBox's Store.

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2013, 12:37 PM
  2. Replies: 17
    Last Post: Dec 17, 2012, 11:58 AM
  3. [CLOSED] get record values of the selected combobox item
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 20, 2012, 1:22 PM
  4. Replies: 1
    Last Post: Jan 19, 2012, 12:11 PM
  5. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM

Posting Permissions