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

MultiSelect shows inconsistent Placeholder Font and Width

3 Answers 228 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Wayne
Top achievements
Rank 1
Wayne asked on 13 Jun 2013, 07:42 PM

I have a simple view with an AutoComplete, a MultiSelect, and an IntegerTextBox side-by-side with no other styling.

@Html.Kendo().AutoComplete().Name("AutoComplete").Placeholder("AutoComplete")
 
@Html.Kendo().MultiSelect().Name("MultiSelect").Placeholder("MultiSelect")
 
@Html.Kendo().IntegerTextBox().Name("IntegerTextBox").Placeholder("IntegerTextBox")


The AutoComplete and IntegerTextBox are the same width as each other and have the same font for the placeholder. The MultiSelect is radically different - it fills the width of the page and its placeholder has Arial font, which differs from the other two.

What's going on?

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 17 Jun 2013, 11:33 AM
Hello Wayne,

In contrast to the AutoComplete and the IntergerTextBox widget where the visible part of the input is actually an HTML input element, the MultiSelect widget uses a div element in which the tags are inserted. And since the div behaves as a block element - it uses the whole space for the row and thus it causes that different look.

However you can override the width or change the display mode like this:

@Html.Kendo().AutoComplete().Name("AutoComplete").Placeholder("AutoComplete")
  
@Html.Kendo().MultiSelect().Name("MultiSelect").Placeholder("MultiSelect").HtmlAttributes(new { style="width:147px;"})
  
@Html.Kendo().IntegerTextBox().Name("IntegerTextBox").Placeholder("IntegerTextBox")
 
<script type="text/javascript">
    $(function () {
        $('#MultiSelect').data().kendoMultiSelect.wrapper.css('display', 'inline-block');
    })
</script>
 

Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 06 Sep 2013, 07:33 AM
Hello Petur,

Why is this not fixed in a new release of KendoUI? The multiselect on safari (iPad) shows small characters. It looks completely different than placeholders of other controls. 

Best Regards,
Ernstjan Freriks
0
Petur Subev
Telerik team
answered on 10 Sep 2013, 09:39 AM
Hello Jeroen,

I tried on several Apple devices and the characters look fine. Take a look at the attached screenshot. 

http://img94.imageshack.us/img94/6369/yzpp.jpg

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MultiSelect
Asked by
Wayne
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Richard
Top achievements
Rank 1
Share this question
or