I am a Kendo UI newbie. In my Asp.Net MVC application I use Kendo UI Grid widget and and configure that Grid so user can select a Grid row like:
$("#gridSurvey").kendoGrid({
dataSource: {
type: "json",
transport: {
read: {
url: "/MyController/GetItemList",
...
selectable: "row",
change: function(e)
{
var entityGrid = $("#gridItems").data("kendoGrid");
_selectedItem = entityGrid.dataItem(entityGrid.select());
},
...
By default, when user clicks on a row, the selected row of the selected Grid row is high-lighted with some built-in color. How can I customize/change that background color of that selected row to transparent or some other color? I prefer transparent background color. Please help. Thank you in advance.
According to Kendo grid documentation, we are able to set the column's header attribute by using the headerAttributes: $("#grid"). kendoGrid({ columns: [{ field: "name", headerAttributes: { style: "text-align: right; font-size: 14px; color: red !
Description. There are situations when you would like to enable the end user to select rows or cells in the grid table, and process data from them or make calculations based on this selection. The Kendo UI grid supports selection by specifying its configuration via its selectable attribute.
.k-grid td.k-state-selected:hover, .k-grid tr:hover {
color: #fff;
background-color: darkslategray;
}
.k-grid .k-state-selected { background: blue; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With