简体   繁体   中英

Gray our disabled kendo ui grid column

I have here a kendo ui grid the first column [OrderID] is not editable. I'm looking to make all disabled columns grayed out , so the user knows that this is not editable.

You can try the following:

1) Apply a particular class for that column in kendo grid using

columns.Bound(p => p.OrderID)
            .HtmlAttributes(new { @class = "grayCol"}).Width("5%");

2) And apply whatever style you need for that class

.grayCol{background-color:#ffffff;};

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