Assume that the view model contains an object name UserInformation and that object contains a string named NewEmail.
Given the following code:
<ejs-textbox id="UserInformation_NewEmail" name="UserInformation_NewEmail"
ejs-for="@Model.UserInformation.NewEmail"
placeholder="Email" floatLabelType="Auto"></ejs-textbox>
The current value populated in the model does not bind or show on the page.
using the value property instead of ejs-for also results in no data being bound to the control.
<ejs-textbox id="UserInformation_NewEmail" name="UserInformation_NewEmail"
value="@Model.UserInformation.NewEmail" placeholder="Email" floatLabelType="Auto"></ejs-textbox>
Chaning from the tag helper to an input tag works as expected:
<input class="e-input" id="UserInformation_NewEmail" name="UserInformation_NewEmail"
value="@Model.UserInformation.NewEmail" placeholder="Email">
but that's expected seeing it's a html tag w/ css, and not a full tag helper. This would also require me to manually add the floating label to each input box I wanted to use it with.
Am I using the control/tag helper incorrectly? Is there a different configuration of properties that will let the value be bound?
I am using version Syncfusion.EJ2.AspNet.Core Nuget package v16.3.0.21
Thanks,
John