I have a generic Kendo Window that I call for different partial views. I can't style contents using bootstrap, as it causes different layouts in different browsers and elements are always cluttered.
This is a sample:
<div class="form-group form-inline">
<div class="line">
<div class="col-xs-6">
@Html.LabelFor(m => m.2, new { @class = "col-xs-4 control-label" })
@Html.DisplayFor(m => m.2)
</div>
<div class="col-xs-4">
@Html.LabelFor(m => m.3, new { @class = "col-xs-4 control-label" })
@Html.DisplayFor(m => m.3)
</div>
</div>
<div class="line">
<div class="col-xs-6">
@Html.LabelFor(m => m.4, new { @class = "col-xs-4 control-label" })
@Html.DisplayFor(m => m.4)
</div>
<div class="col-xs-4">
@Html.LabelFor(m => m.5, new { @class = "col-xs-4 control-label" })
@Html.DisplayFor(m => m.5)
</div>
</div>
</div>
<div class="clearfix"> </div>
<div class="clearfix"> </div>
@(Html.Kendo().Grid<Class...>()
....
And line:
.line{
line-height: 20px;
}
Am I missing something? I just want to have a 2-column layout. Can you give me an example please?
You'll probably need something like this. Play with the column widths depending on your labels.
I don't know why, but I should use
col-xs-5
. Also, to keep elements inside atab strip
I have to put them inside acontainer
.UPDATE I found the solution at their documents.
First you need to add the following references.
And then add the following CSS to your site.css and include it in the page:
And everything works fine, you should be able to use the following: