Hello all!
I'm currently running into an issue with the latest version of Kendo UI (2013.3.1119). In the previous version I used Kendo window as a form entry and used the bootstrap 3 form group as the layout. My expected results are attached. The code used inside the window is as follows.
<div class="form-horizontal" role="form">
<div class="form-group">
@Html.Label("Entry Type", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DropDownList()
.Name("ddlEntryType")
.HtmlAttributes(new { @required = "required", @style = "width: 100%" })
.OptionLabel("Select Course Type...")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Manual",
Value = "Manual"
},
new SelectListItem() {
Text = "Temporary Access",
Value = "Temporary"
}
})
)
</div>
</div>
<div class="form-group">
@Html.Label("Select Course", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DropDownList()
.Name("ddlCourses")
.HtmlAttributes(new { @required = "required", @style = "width: 100%" })
.OptionLabel("Select Course...")
.DataTextField("Name")
.DataValueField("ID")
.DataSource(dataSource =>
{
dataSource.Read(read =>
{
read.Action("GetCourseList", "Home", new { @personID = ViewBag.PersonID })
.Data("filterCourses");
})
.ServerFiltering(true);
})
.Enable(false)
.AutoBind(false)
.CascadeFrom("ddlEntryType")
)
</div>
</div>
<div class="form-group">
@Html.Label("Completed Date", htmlAttributes: new { @id = "lblCompletedDate", @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DatePicker().Name("dpCompletedDate").Value(DateTime.Now))
</div>
</div>
<div class="form-group">
@Html.Label("Course Site", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@Html.TextBox("txtCourseSite", "", htmlAttributes: new { @placeholder = "ex. Nationwide Children's Hospital, CITI, or OSU", @required = "required", @class = "form-control" })
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button type="button" class="btn btn-default" onclick="closeAddCompletedCourse(this);">Cancel</button>
<button type="submit" class="btn btn-primary">Add</button>
</div>
</div>
</div>
After updating to the latest version I got a different result which is also attached. What you will see is the horizontal grouping is now breaking in the window. I did find a temporary fix which was to decrease the col size that is holding the control from 10 to 8. The bootstrap grid is 12 so the previous code should have worked. I'm just curious if I'm missing something or if this is an issue in the latest version of Kendo UI.
Thanks in advance for your help!
I'm currently running into an issue with the latest version of Kendo UI (2013.3.1119). In the previous version I used Kendo window as a form entry and used the bootstrap 3 form group as the layout. My expected results are attached. The code used inside the window is as follows.
<div class="form-horizontal" role="form">
<div class="form-group">
@Html.Label("Entry Type", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DropDownList()
.Name("ddlEntryType")
.HtmlAttributes(new { @required = "required", @style = "width: 100%" })
.OptionLabel("Select Course Type...")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Manual",
Value = "Manual"
},
new SelectListItem() {
Text = "Temporary Access",
Value = "Temporary"
}
})
)
</div>
</div>
<div class="form-group">
@Html.Label("Select Course", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DropDownList()
.Name("ddlCourses")
.HtmlAttributes(new { @required = "required", @style = "width: 100%" })
.OptionLabel("Select Course...")
.DataTextField("Name")
.DataValueField("ID")
.DataSource(dataSource =>
{
dataSource.Read(read =>
{
read.Action("GetCourseList", "Home", new { @personID = ViewBag.PersonID })
.Data("filterCourses");
})
.ServerFiltering(true);
})
.Enable(false)
.AutoBind(false)
.CascadeFrom("ddlEntryType")
)
</div>
</div>
<div class="form-group">
@Html.Label("Completed Date", htmlAttributes: new { @id = "lblCompletedDate", @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@(Html.Kendo().DatePicker().Name("dpCompletedDate").Value(DateTime.Now))
</div>
</div>
<div class="form-group">
@Html.Label("Course Site", htmlAttributes: new { @class = "col-lg-2 control-label" })
<div class="col-lg-10">
@Html.TextBox("txtCourseSite", "", htmlAttributes: new { @placeholder = "ex. Nationwide Children's Hospital, CITI, or OSU", @required = "required", @class = "form-control" })
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button type="button" class="btn btn-default" onclick="closeAddCompletedCourse(this);">Cancel</button>
<button type="submit" class="btn btn-primary">Add</button>
</div>
</div>
</div>
After updating to the latest version I got a different result which is also attached. What you will see is the horizontal grouping is now breaking in the window. I did find a temporary fix which was to decrease the col size that is holding the control from 10 to 8. The bootstrap grid is 12 so the previous code should have worked. I'm just curious if I'm missing something or if this is an issue in the latest version of Kendo UI.
Thanks in advance for your help!