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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:28:57+00:00 2026-06-08T12:28:57+00:00

I am populating a secondary table with an observable array that is a child

  • 0

I am populating a secondary table with an observable array that is a child of another observable array but when I select a row from the first table the records in the secondary table are not updated to reflect the selected record from the first table. I can see from the log messages that I have visibility to the collection so it seems like everything is working correctly but the second table is not showing the expected results.

Please see my jsFiddle here:

http://jsfiddle.net/D64Bj/5/

You will see in the log messages that when I click a row in the first table I can see how many records are in the second item in the collection and I get the right Id but the rows in the second table are not updated.

does anyone see what I am doing wrong here? Any suggestions on a better way to handle this using knockout.js? Thanks in advance!

  • 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-08T12:28:58+00:00Added an answer on June 8, 2026 at 12:28 pm

    You need to make ActiveTeam a ko.observable, otherwise there won’t be any binding:

    Here’s the changes you need:

    <tbody data-bind="foreach: ActiveTeam().Players">
    ...
    myTeams.ActiveTeam = ko.observable(myTeams.Teams()[0]);
    ...
    myTeams.ActiveTeam(item);
    

    Edit: and here’s a fiddle

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

Sidebar

Related Questions

I'm populating a CheckBoxList from database table. As per requirement, all the values should
When populating the queue from the contents of the file, depth does not seem
I am populating a listview from a database but in certain cases I want
I'm populating a table with values from my database. I have included a delete
I'm populating a stack instance variable with elements of the array el , but
I am populating a spinner from a DB. It works great. Except that if
I'm populating a dropdownlist in c# asp.net-MVC from a SQL table using Linq2Sql. I'd
I'm working on populating the table view with an array of dictionaries. The contents
Im populating a GridView from List so am forced to use TemplateField controls to
im populating the data in the combo box using dataset tables...with some table name..now

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.