Disable checkbox ColumnMenu kogrid

84 Views Asked by At

I have a ko-grid like that http://knockout-contrib.github.io/KoGrid/#/examples. And I want to disable a specific checkbox in Column Menu as below image. How can I do it? enter image description here

Thank you in advance.

1

There are 1 best solutions below

0
On

That website needs to update it's Plunkers, it's calling insecure http resources, and none of the examples are displaying.

Anyway, to disable a specific checkbox, disable the details of that corresponding row. Like this:

this.myData = ko.observableArray([{name: "Moroni", age: 50},
                                  {name: "Tiancum", age: 43, disable: true}, //the row you want disabled
                                  {name: "Jacob", age: 27},
                                  {name: "Nephi", age: 29},
                                  {name: "Enos", age: 34}]);

Let me know if it works.