This question is locked. New answers and comments are not allowed.
Hi.
The code below does not format the DatePicker with the specified width of 200px as in my CSS class shown below. If I use e.g. a CurrencyTextBoxFor with the same class as for the DatePicker it works correctly, but the DatePicker does not format.
But, if I specifies the attribute directly like in the code below it formats correctly. Is this a bug or am I understanding this wrong?
Below is my CSS class.
The version is: Telerik_Extensions_for_ASPNET_MVC_2010_2_825
The code below does not format the DatePicker with the specified width of 200px as in my CSS class shown below. If I use e.g. a CurrencyTextBoxFor with the same class as for the DatePicker it works correctly, but the DatePicker does not format.
<% Html.Telerik().DatePickerFor(o => o.StartDato)
.Name(
"StartDato"
)
.InputHtmlAttributes(
new
{ @
class
=
"input"
})
.Format(
"dd. MMM yyyy"
)
.ButtonTitle(
"Dato"
)
.Render(); %>
But, if I specifies the attribute directly like in the code below it formats correctly. Is this a bug or am I understanding this wrong?
<% Html.Telerik().DatePickerFor(o => o.StartDato)
.Name(
"StartDato"
)
.InputHtmlAttributes(
new
{ style =
"width: 200px;"
})
.Format(
"dd. MMM yyyy"
)
.ButtonTitle(
"Dato"
)
.Render(); %>
Below is my CSS class.
.input
{
width
:
200px
;
}
The version is: Telerik_Extensions_for_ASPNET_MVC_2010_2_825