kendo-uitelerikkendo-gridkendo-datasourcekendo-validator

Kendo UI Grid dataSource schema model fields - add custom attributes to fields


I want to add custom attributes to model fields.Think can I add data-email-msg as attribute to a field in Kendo Grid.(Please look at my example and how I add it..)

here is a example.....

$("#grid").kendoGrid({
  columns: [ {
    field: "name",
    title: "Name",
    attributes: {
      "class": "table-cell",
      style: "text-align: right; font-size: 14px",
      data-email-msg : "enter a valid email massage"
    }
  } ],
  dataSource: [ { name: "Jane Doe" }, { name: "John Doe" }]
});

I already know that above is wrong. I am asking, is there a way to do that ??


Solution

  • Put data-email-msg in quotes like "data-email-msg"