I have a view model like:
That is currently rendered on my view as:
@Html.EditorFor(model => model.PhoneNumber)
With yesterday's official release of the MaskedTextBox control, I am attempting to update my view to use it instead like:
@(Html.Kendo().MaskedTextBoxFor(model => model.PhoneNumber).Mask("(999) 000-0000"))
Unfortunately, VS is complaining "Cannot implicitly convert type 'string' to 'int?'" and the view throws the same compilation error.
Looking at the following WidgetFactory metadata, the MaskedTextBoxFor is trying to return its value as an int?
// Creates a new Kendo.Mvc.UI.MaskedTextBox.
Phone numbers are typically too big of numbers to be represented by int, not that I would want to incur the overhead of doing so even if it was possible. Are there any plans to update the helper to return the model's data type rather than hard-coding the return type to int? ?