Knockout-Contrib / Knockout-Contrib/KoGrid

Changes to view model not shown in grid

Open
#225 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
277
Forks
124
PR merge metrics
No merged PRs in 30d

Description

The grid initially renders fine, but when cells are not refreshed when the underlying value is updated.

The problem seems to originate from the propertyCache row.js:

Original:
self.propertyCache = {};
self.getProperty = function (path) {
return self.propertyCache[path] || (self.propertyCache[path] = window.kg.utils.evalProperty(self.entity, path));
};

Working:
self.getProperty = function (path) { return window.kg.utils.evalProperty(self.entity, path); }

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating propertyCache in row.js and compare its cached getProperty behavior with the working version shown in the issue. Reproduce the grid update scenario and verify that cells reflect changes to the underlying value without requiring an unrelated refresh.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.