简体   繁体   中英

Disable checkbox ColumnMenu kogrid

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM