I can set the static row or column index by adding hard coded index value, but if the user wants to choose the column how can we do it using knockout js. Currently I have set the static column index but I want the users to be able to choose the column to freeze.
var viewModel= function () {
var self = this;
self.data = ko.observableArray([]);
self.recordCount = ko.observable(0);
self.lowTotNoOfRec = ko.observable(0);
self.pageSize = ko.observable(10);
self.pageIndex = ko.observable(0);
self.paged = function (e, data) {
self.pageIndex(data.newPageIndex);
};
self.staticColumnIndex = -1;
}.