<form class="form-inline">
@Html.LabelFor(model => model.DateFrom, htmlAttributes: new { @class = "control-label" })
@* cssClass will be added to the wrapper element of the component *@
@Html.EJS().DatePickerFor(model => model.DateFrom).CssClass("e-inlineForm").Render()
@Html.LabelFor(model => model.DateFrom, htmlAttributes: new { @class = "control-label" })
@Html.EJS().NumericTextBox("sdhg").CssClass("e-inlineForm").Render()
</form>
<style>
.form-inline .e-inlineForm {
width: auto !important;
}
</style> |
<form class="form-inline">
<div class="form-group">
@Html.LabelFor(model => model.DateFrom, htmlAttributes: new { @class = "control-label" })
@* cssClass will be added to the wrapper element of the component *@
@Html.EJS().DatePickerFor(model => model.DateFrom).CssClass("e-inlineForm").Render()
</div>
<div class="form-group">
@Html.LabelFor(model => model.DateFrom, htmlAttributes: new { @class = "control-label" })
@Html.EJS().NumericTextBox("numeric").CssClass("e-inlineForm").Render()
</div>
</form>
<style>
.form-inline .e-inlineForm {
width: auto !important;
}
@@media only screen and (max-width : 400px) { /* You can provide the max-width as per your display resolution*/
.form-inline .e-inlineForm {
width: 100% !important;
}
}
</style> |