Knockout-Contrib / Knockout-Contrib/KoGrid

KO.computed is not supporting Nested View model

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
277
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Hi,

I was using a nested viewmodel binding with KoGrid. in earlier version of KoGrid, it was working fine. but recently have upgraded KOGrid 2.1 (koGrid-2.1.1,knockout-2.2.0,jquery-1.8.3) and all those ko.computed stop working which are on nested view model. I have created sample fiddle here:

http://jsfiddle.net/yaBT8/1/

There are two computed observables in the fiddle.

  1. DisplayName is working fine - which is using Name observable which is at header level.
  2. AgeAfterFiveYears is not working - which is using Age.Years which is at child level.

Please advice me.

Thanks a Lot,
Kajal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked JSFiddle reproduction and compare its behavior across KoGrid 2.1.1, Knockout 2.2.0, and jQuery 1.8.3. Trace why the computed observable using the nested Age.Years value fails while DisplayName works, and consider the issue done when both computed observables update correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.