This question is locked. New answers and comments are not allowed.
Hi All,
I am using the MVC DatePicker control and I have an issue trying to add an additional CSS class using the InputHtmlAttributes method. Ultimately I'd like to be able to enable or disable all my input elements by filtering on those having being declared of this class. The problem is that the drop-down calendar is not being displayed any more. Here is my statement:
and here is how it is being rendered:
This is how it was if I did not add my changeableInput custom class:
Is there a workaround to this issue?
Many thanks,
Radoslav Semerdjiev
I am using the MVC DatePicker control and I have an issue trying to add an additional CSS class using the InputHtmlAttributes method. Ultimately I'd like to be able to enable or disable all my input elements by filtering on those having being declared of this class. The problem is that the drop-down calendar is not being displayed any more. Here is my statement:
Html.Telerik().DatePicker() .Name("cutoffDate") .ShowButton(true) .Value(Model.ValuationDate) .InputHtmlAttributes(new { @class = "changeableInput" })and here is how it is being rendered:
<div class="t-widget t-datepicker" id="cutoffDate"><input class="changeableInput" id="cutoffDate-input" name="cutoffDate" value="30/05/2010" /><a class="t-link t-icon t-icon-calendar" href="#" tabindex="-1" title="Open the calendar">select date</a></div>This is how it was if I did not add my changeableInput custom class:
<div class="t-widget t-datepicker" id="cutoffDate"><input class="t-input" id="cutoffDate-input" name="cutoffDate" value="30/05/2010" /><a class="t-link t-icon t-icon-calendar" href="#" tabindex="-1" title="Open the calendar">select date</a></div>Is there a workaround to this issue?
Many thanks,
Radoslav Semerdjiev