I have a koGrid and I want to select only somes cells (2 cells) from the row. If use canSelectRows: true
property I can select the entire row - I don't need this. How to select certain cells from koGrid row ?
grid source:
this.gridOptions = {
data: self.people,
enablePaging: true,
pagingOptions: self.pagingOptions,
useExternalSorting: true,
sortInfo: self.sortingOptions,
enableColumnResize: false,
keepLastSelected: false,
multiSelect: true,
showColumnMenu: false,
showFilter: false,
canSelectRows: false,
columnDefs: [{
field: "Age",
displayName: "Age",
width: "33.3%",
sortable: true
},
{
field: "Address",
displayName: "Address",
width: "33%",
sortable: true
},
{
field: "Website",
displayName: "Website",
cellTemplate:
'<div>' +
' <a data-bind="attr: {href:\'linkAddress'">People</a>' +
'</div>',
width: "33%"
}],
selectedItems: self.selectedItems,
plugins: [new koGridSetDefaultSortingPlugin(this.sortingOptions), new koGridSetNextPagePlugin()]
};