Results 1 to 3 of 3

Thread: Linked Combo store reload with viewmodel binding

  1. #1

    Default Answered: Linked Combo store reload with viewmodel binding

    Hi,

    I want to reload combo store when the value of other combo changes. I know we can do it inside the change event. But i want to do this using simple view model binding so that i can avoid change listener. Check this fiddle https://fiddle.sencha.com/#fiddle/12gk . I want to reload numbers store using the following code which is not working.

    Code:
    proxy: {
        			type: 'ajax',
        			url: 'abc.htm',
        			reader: {
        				type: 'json',
        				rootProperty: 'Data'
        			},
        			extraParams:{numberType:'{sample.numberTypeCombo}'}
        		}
    Please tell me any solution for this...

  2. But i want to do this using simple view model binding so that i can avoid change listener.
    What says against event listener? I would say the best solution will be with event instead of binding in this case. Even if you'll achieve this with binding, it will look like event.

  3. #2
    Sencha Premium Member yorl1n's Avatar
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    294
    Answers
    30

    Default

    But i want to do this using simple view model binding so that i can avoid change listener.
    What says against event listener? I would say the best solution will be with event instead of binding in this case. Even if you'll achieve this with binding, it will look like event.

  4. #3

    Default

    Thanks. I used change event only

Similar Threads

  1. Issue binding Grid to the viewmodel store
    By doddasuresh in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 14 Dec 2015, 10:17 AM
  2. MVVM, Remote store and ViewModel binding to GridPanel
    By John Sourcer in forum Ext 5: Q&A
    Replies: 7
    Last Post: 2 Apr 2015, 7:49 PM
  3. Replies: 2
    Last Post: 18 Aug 2014, 8:43 AM

Tags for this Thread

Posting Permissions

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