Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8144349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:21:06+00:00 2026-06-06T13:21:06+00:00

hi i have a model in knockout holded by a variable : var knockoutObject

  • 0

hi i have a model in knockout holded by a variable :

var knockoutObject = knockoutObservable;

if i do this:

knockoutObject(newValue);

it triggers the binding events for knockout(?) and the ui is refreshed
how can i update the value of the knockoutObservable without affecting the entire screen? in other words: updating the value on the model but not updating the UI

I know its kind of weird because that’s the deal with MVVM but i need it for a specific scenario…

edit:
what im trying to do:
I have a few jsTrees on the screen. they are bounded to the model.
when I update a certain observable in the model all the trees are being re rendered and are closed to there default state. it gives me a bad user experience
so because the UI is already updated with the correct values when i chane a value in a tree (this is how i built it) i dont need knockout to rerender the trees. just the value on the model.

i have a custom binding handler for the trees:

ko.bindingHandlers.Tree

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:21:07+00:00Added an answer on June 6, 2026 at 1:21 pm

    You can use throttle to delay execution – but you probably want to approach the entire problem differently. With some more insight into what you’re trying to solve, we can probably suggest a better alternative.

    UPDATE (from comments):

    The binding ideally should not recreate the jsTree plugin, but simply modify it’s internals. This is the preferred way of doing it.

    If you can’t do that, see if you can cache the state in the binding and recreate the jsTree with previous state

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Knockout view model defined like this: function viewModel () { var
I have a Knockout.js view model that looks like this: UserName:null, FirstName:null, LastName:null, Countries:{
I have model in a view like this @model List<Products> I can itereate over
I have just started with knockout this Model and viewmodel: $(function() { // Class
I have model like this: scope :search_posts, lambda { |query| mega_posts.where( title LIKE ?
In my controller I have model operations that can return empty results. I've setup
I have model with a Foreign Key to itself like this: class Concept(models.Model): name
Suppose I have knockout.js template like this: <script type=text/html id=mytemplate> <label for=inputId>Label for input</label>
I have model that looks like this: public class Lesson { public int Id
I have model Person or say Profile and this class Person has a genericRelationship

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.