Results 1 to 2 of 2

Thread: Form Field switching with Binding

  1. #1
    Sencha User
    Join Date
    Jul 2016

    Default Form Field switching with Binding

    I am attempting to cause a set of fields in a form to swap from display to a specific form field xtype to make it editable.
    So far I have looked at playing creating my custom form item by extending container and implementing the mixin "Ext.form.field.Field". It would contain two field below it that are referenced as viewField and editField.

    Is there a good way to insure that the binding from the ViewModel only affects one at a time? Or am I better off just letting both be changed simultaneously?
    Does anyone have a better way of doing this?

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Central Ohio


    Depending on the circumstances, it would probably make the most since to have both of them bound to the VM data so when it is updated, both fields are the same. Otherwise, that's something you'd have to implement yourself to keep them synced up.
    Tristan Lee
    Sencha Inc - Sustaining Engineer

    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Replies: 2
    Last Post: 3 Aug 2015, 4:26 PM
  2. Replies: 3
    Last Post: 2 Jun 2014, 4:10 AM
  3. Replies: 2
    Last Post: 20 Mar 2013, 2:39 AM

Posting Permissions

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