2

I am workign with Ko Grid and I am binding an array of observable to the Grid. Now, I do not see much documentation about selection mechanism. I would like to operate on selected rows in the grid when user selects particular rows.

Anyone has any good example or reference on this topic?

Lost
  • 12,007
  • 32
  • 121
  • 193

1 Answers1

2

Here is a list of all configurations for koGrid: https://github.com/ericmbarnard/KoGrid/wiki/Configuration

You should add some the following properties depends on desired behavior: isMultiSelect, selectedItem, selectedItem.

Here is an example from documentation:

<div data-bind="koGrid: { data: myObsArray,
                           isMultiSelect: false,
                           selectedItem: mySelectedObj,
                           columnDefs: [ { field: 'firstName', displayName: 'First Name' }]"></div>
Artem Vyshniakov
  • 16,355
  • 3
  • 43
  • 47