Knockout-Contrib / Knockout-Contrib/KoGrid
KoGrid Automatic Refresh - Mapping Plugin
- Dominant language
- JavaScript
- Stars
- 277
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
Dear all, I'm working with a KoGrid bind to an observable array mapped by using the mapping plugin. every 3 sec. i'm performing the ko.mapping.fromJS() in order to refresh my observable array. everything works fine except the selectedItems mantaining
var SELECTED_PROP = '**kg_selected**',
//selectify the entity
if (self.entity[SELECTED_PROP] === undefined) {
self.entity[SELECTED_PROP] = false;
} else {
// or else maintain the selection set by the entity.
self.selectionService.setSelection(self, self.entity[SELECTED_PROP]);
}
disabling the self.selectionService.setSelection(self, self.entity[SELECTED_PROP]); into the else statement everything works out.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce a KoGrid bound to an observable array while ko.mapping.fromJS() refreshes it every three seconds, using the reported selectify and selectionService path. Compare selectedItems before and after refresh; done means the selection is maintained without disabling the selection call in the else branch. No file or test is named, so the relevant implementation and test location must first be identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100