Knockout-Contrib / Knockout-Contrib/KoGrid

Problems Binding to selectedItems

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

Description

The items in my observable array all have a property named "Selected". I have a separate observable array, selectedItemsList, that is a ko.computed which is simply the main data array but filtered where Selected==true. When my kogrid loads, the footer will correctly display the number of total items AND selected items (hooray!), but the SelectionCheckbox column does not indicate the selected rows and neither do the rows highlight. Additionally, when I select or deselect any rows in the grid, the selected items count in the footer is not updated (this does work when I don't bind anything to the selectedItems grid option). I've reviewed a similar issue discussed here: https://github.com/Knockout-Contrib/KoGrid/issues/158 , but when I try to use any property named "**kg_selected**" it just breaks the grid...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with KoGrid's selectedItems option and the SelectionCheckbox column, then compare the behavior described here with issue #158. Reproduce the filtered selectedItemsList case and verify that selected rows, row highlighting, and the footer count remain synchronized after selection changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.