Sometime you are required to write a template for Kendo Grid to fetch the data on a condition below is the column template to write multiple condition to do it. Its easy one, but to remember those small tricky things, I had posted this one.
Column[
{ field: "DateActivated", title: "Activated", width: 50,
template: '#=(DateActivated==null)?"":(Status=="Requested")?"":
kendo.toString(kendo.parseDate(DateActivated"),"MM/dd/yyyy")#',filterable: false }]
Happy Coding!
No comments:
Post a Comment