I am using the KoGrid plugin to have a knockout grid with selection checkboxes. I have the following code so far.
function columnDefsVM() {
var self = this;
this.myData = ko.observableArray(GlobalJson);
this.mySelectedData = ko.observableArray(SelectedJson);
this.gridOptions = {
data: self.myData,
columnDefs: [{ field: 'TestEventId', displayName: 'Name' }],
selectedItems: self.mySelectedData,
enablePaging: false,
};
}
ko.applyBindings(new columnDefsVM());
Im just wondering how to I access the selectedItems
property so that I can pass the selected values to an ajax call?
Or can I not do this and have to manually push the selected Id to an array using the afterSelectionChange
option?