Hello.
We have a few Problems with editors in current Version of IgniteUi.
For example: @Html.Infragistics().DatePickerFor(m => m.Birthdate).Render()
All Editors rendered via "@Html.Infragistics()" are generating a hidden field. Thats ok, but did you ever think about Labels? The standard behavior for Labels is simply not working when the Propertyname is set as name for the generated hidden field.
Please provide a better documentation for MVC Controls, like you did it for pure javascript.
Greetings from Germany
Carsten Wentz
Hello Carsten,
Thank you for contacting Infragistics!
Setting the value when using DatePickerFor is not required I am attaching a sample demonstrating that behavior. I am currently looking at why the igDatePicker is marked as required by default I will get back to you with more information. Concerning the other matters I will pass that information onto the team responsible for the documentation and such.
Hello and thanks for your fast answer.
The Editors are working correctly without using ".Value", but i found out that the "DatePickerFor" with german language settings requires the ".Value". If we dont set it explicitly, the input is field is empty. If i remove the language stuff, the DatePickerFor works as expected.
Greetings
Hello Carsten,I see HireDate is not nullabe. If DateTime is not nullable it is expected for "required" to be "true". You can change your model like this, to achieve what you want:
public DateTime? HireDate { get; set; }
Regards,Alexander MarinovSoftware developerInfragistics
Hello,
ok, thank you. The "required" works as expected if the Date Property is nullable. But the DatePicker value is still empty if we dont call ".Value". I found out that this has nothing to do with our german localozation settings. We tested it again with none localization files and the field is still empty. The Property contains a Date in that example. Could you also test this and tell us your results?
Thank you for the update. In my testing and sample I don’t have to use “.Value” it get a value passed down from the model by the controller into the igDatePicker. Can you please provide me with a sample that demonstrates the behavior you are seeing so I can investigate this matter futher?