Posted 09 Jun 2016 Link to this post
Posted 12 Jun 2016 Link to this post
Hello Vidya,
In order to customize the filter input element a template should be used. I assume that you are using filter row mode. If so the columns.filterable.cell.template should be used. Otherwise the columns.filterable.cell.template function should be used.
The ultimate goal is user to be able to define the input element and set its placeholder option.
Posted 13 Jun 2016 in reply to Vidya Link to this post
Hi,
Can you post some example of setting placeholder in MVC grid.
Thanks
Posted 15 Jun 2016 Link to this post
Please refer to the code snippets below:
columns.Bound(p => p.OrderDate).Format(
"{0:MM/dd/yyyy}"
).Filterable(ftb => ftb.Cell(cell => cell.Template(
"customDatePicker"
)));
function
customDatePicker(args) {
args.element.attr(
"placeholder"
,
"mmddyyyy"
);
args.element.kendoDatePicker();
}