Results 1 to 5 of 5

Thread: Bind TextField<String> to BaseModel

  1. #1
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65

    Default Bind TextField<String> to BaseModel

    Hi all,

    i have a BaseModel with some key-value pairs in the RcpMap (e.g. "firstName", "lastName", ...). Now i want to bind the keys from the BaseModel to the depending TextField<String> on my form ("firstName" to TextField<String> for the First-Name, and so on).

    So if the user does an input the the TextField, the data for the key is also updated. E.g. the user does an input to First-Name, there is an "automatic" set("firstName") to my BaseModel.

    Is this possible?
    And if yes, can someone give me a working solution, maybe with a code-snippet?

    Greetings

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    That is already included in GXT.

    Take a look at this example : http://www.extjs.com/examples/explor...l#basicbinding

  3. #3
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65

    Default

    That's great!

    It's working ... sorry for my stupid question. I'm still learning to use GXT, and there are a lot of things in GXT i overlooked, because of these tons of features

    Thank you

  4. #4
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65

    Default

    hi,

    i use the ComboBox and NOT the SimpleComboBox ... because of having a different key to the shown value.

    So therefore i can't use the "SimpleComboBoxFieldBinding" . Any idea?

    What about the CheckBoxes, RadioButtons, ... can i use the "FieldBinding" for these UI-Elements?

    Greetings

  5. #5
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65

    Default

    i give the answere myself ... if someone is interested in the soloution

    found a working solution there http://extjs.net/forum/showthread.php?t=56855

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •