This is a migrated thread and some comments may be shown as answers.

Filter input placeholder text

4 Answers 540 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Feb 2015, 09:45 AM
Hi,

Is it possible to add placeholder text to an input (text box) shown on the grid row filter?

Thanks,

Michael

4 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 19 Feb 2015, 10:15 AM
I should add, I achieved what I wanted with the following code but I was looking for a "cleaner" built in property to set on the grid if it exists?

var today = new Date();
$("[data-text-field=formatted_dob]").attr("placeholder", moment(today).format("DD MMM YYYY"));
0
Accepted
Kiril Nikolov
Telerik team
answered on 20 Feb 2015, 12:52 PM

Hello Michael,

There is no built-in way to achieve this. And what you do is using a standard jQuery method, so I am not really sure why you are considering it "dirty"?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Vidya
Top achievements
Rank 1
answered on 08 Jun 2016, 07:26 PM

Hi,

I'm looking for the same thing to add a placeholder for all the filter text boxes in the grid. For date columns the filter text box should show the date format like mm\dd\yyyy. How to achieve this for all columns in the grid?

0
Kiril Nikolov
Telerik team
answered on 09 Jun 2016, 07:17 AM
Hello Vidya,

As the question differs from the original topic - can you please open a separate support request and we will be happy to help.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Vidya
Top achievements
Rank 1
Share this question
or