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

placeholder text

4 Answers 898 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
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.

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Jan 2012, 10:32 AM
Hello Steve,

 
HTML5 placeholder attribute works perfect on my side:

Kind regards,
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
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......    />
0
Georgi Krustev
Telerik team
answered on 29 Aug 2013, 08:21 AM
Hello Charles,

 
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......    />

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Georgi Krustev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Adeel
Top achievements
Rank 1
Share this question
or