or
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?
<%= Html.Kendo().ComboBox()
.Name("contactsAc")
.Filter("startswith")
.Placeholder("Select a Contact")
.MinLength(3)
.HtmlAttributes(new { style = "width:250px;" })
.DataSource(source => source.Read(read => read.Action("ContactSelect", "TrainingSchedule")
.Data("onAdditionalData"))
.ServerFiltering(true))
.DataTextField("Name")
.DataValueField("Id")
.AutoBind(false)
.Events(e => e.Select("onSelect"))
%>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function onSelect(e) {
var dataItem = this.dataItem(e.item.index());
var contact = new Object();
contact.ContactId = dataItem.Id;
contact.ContactName = dataItem.Name;
vm.assignedContacts.push(contact);
kendo.bind($(document.body), vm);
}
</
script
>
$(function () {
$("#startDate").kendoDatePicker();
$("#endDate").kendoDatePicker();
$("#detailForm").kendoWindow({
height: "450px",
title: "Training Schedule Detail",
visible: false,
width: "600px"
}).data("detailForm");
$grid.data = $("#grid").data("kendoGrid");
$("#detailForm").submit(function () {
if (validateData()) {
formSubmit();
}
return false;
});