
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve
asked on 13 Jan 2012, 02:16 AM
How do I go about getting some placeholder text inside the combo so when they click on it or start tying it disappears?
I tried the HTML5 placeholder attribute on the input, but it doesn't seem to work.
I tried the HTML5 placeholder attribute on the input, but it doesn't seem to work.
4 Answers, 1 is accepted
0
Hello Steve,
Georgi Krustev
the Telerik team
HTML5 placeholder attribute works perfect on my side:
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 13 Jan 2012, 02:44 PM
Hmmm, ok difference for me was I put it on the input before it was Kendo'd, not after
That makes a difference then eh :) Okay, I'll try thanks
That makes a difference then eh :) Okay, I'll try thanks
0

Adeel
Top achievements
Rank 1
answered on 26 Aug 2013, 03:10 PM
Hi,
Is there any way to set optionLabel on "select" element's html rather than doing it programatically from javascript ?
Example :
<select option-label="Please select" otherHtmlAtrributes...... />
Is there any way to set optionLabel on "select" element's html rather than doing it programatically from javascript ?
Example :
<select option-label="Please select" otherHtmlAtrributes...... />
0
Hello Charles,
Regards,
Georgi Krustev
Telerik
The optionLabel option is supported only by the DropDownList widget. The ComboBox has placeholder option. A configuration option can be defined declaratively if the widget is initialized with kendo.init or kendo.bind. In your case, the optionLabel option needs to be defined like this:
<
select
data-option-label
=
"Please select"
otherHtmlAtrributes...... />
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!