Results 1 to 4 of 4

Thread: Force a viewModel to notify a specific binding change?

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    19
    Answers
    4
    Vote Rating
    0
      0  

    Default Force a viewModel to notify a specific binding change?

    Hi,

    i want a binding to be triggered/notified even if the value which is set is the same like before.

    At the moment im doing it like this:
    viewModel.set('current.pageFilter.selection', null);
    viewModel.notify();
    viewModel.set('current.pageFilter.selection', recordToSelect);
    viewModel.notify();

    This way the binding will be triggered two times.


    Is there a way to force a binding to be triggered even if the value has not realy changed?

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446
    Vote Rating
    186
      0  

    Default

    Hi Grizzler89--

    Can you provide a test case demonstrating the issue? If you can post your code here or (ideally) create a Fiddle, I'll be happy to test this along with you.

    Thanks!
    Joel

  3. #3
    Sencha User
    Join Date
    Dec 2013
    Posts
    20
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by joel.watson View Post
    Hi Grizzler89--

    Can you provide a test case demonstrating the issue? If you can post your code here or (ideally) create a Fiddle, I'll be happy to test this along with you.

    Thanks!
    Joel
    I'm *very* interested in this. Here's my fiddle.
    https://fiddle.sencha.com/#fiddle/phv

  4. #4
    Sencha Premium User NoahK17's Avatar
    Join Date
    Apr 2008
    Location
    Atlanta, GA
    Posts
    533
    Vote Rating
    2
      0  

    Default

    It's been 3 years. Any update, Joel?
    Noah
    Front-End Developer
    Norfolk Southern

Posting Permissions

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