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 7989143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:39:57+00:00 2026-06-04T12:39:57+00:00

We have a large nested observable array mapped though templates to create a tree

  • 0

We have a large nested observable array mapped though templates to create a tree view. The list is dynamic, but there are potentially 1000+ elements in the tree.

We are having performance issues loading and searching this collection – most noticeably in IE8 and iPad. Chrome seems ok.

The elements in the collection don’t actually change, so I don’t think we need the ‘notify’ aspects of the observables, but we want to take advantage of the databinding.

Is there a way to do data-binding to objects in your viewmodel which are not observable?
Is there a way to create non-observable complex data collections without using ko.mapping.fromJS()?

  • 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-04T12:40:00+00:00Added an answer on June 4, 2026 at 12:40 pm

    You can totally bind properties that do not change and are not observables. It seems like you just want to map a large object to another in the same way as the mapping plugin but without creating observables. Have you considered simply using JQuery.extend?

    If you array is observable then make sure you follow the guidelines in this excellent post.

    I’ve also heard of people getting better performance by switching from native templating to third parties like jquery.tmpl (not sure if this applied to you).

    EDIT

    After further clarification in the comments. The problem was that your bindings were assuming that the properties were observables. In your template you have the follow line.

     <!-- ko if: IsSectionHeader() --> 
    

    This is executing the observable IsSectionHeader in order to get it’s value. This is fine when IsSectionHeader is an observable because observable are functions. When you switch to raw model this won’t work. I recommend using a tool such as firebug and checking the error console, it reported the error exactly.

    Anyway, the fix was to remove the double brackets. Note, that the ko bindings can take observables with or without the brackets even if the property is observable so they weren’t needed anyway.

    Hope this helps.

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

Sidebar

Related Questions

I have a large nested array that I'm generating from parsing a CSV file
I have a large nested list that I am trying to animate using jquery
I have a nested list like below (but it has 1,000's of the holder
I have a large nested that selects new classes, which works good, but I
I have a large nested vector that look like this: import Data.Vector let x
Consider I have large library package with sophisticated tree of private or package modules
I'm trying to create a faster query, right now i have large databases. My
I have a very large nested for loop in which some multiplications and additions
I have a large Mash object with lots of nested Mashes. Some of the
I have a large class with many nested subclasses of different types as follows:

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.