BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Adrian,
Thanks for using Syncfusion product.
Query: “In NumericTextboxFor When I set to use Locale ("es-AR") or Locale ("es-ES"), you can enter a value, and then click on submit button, the value is 0. But when I not using the locale parameter, I can get the value.”
We would like to let you know that, in “For” controls while unobtrusive is in enabled state we should give the properties in the view model as shown in the following code snippet.
[Controller] public ActionResult Index() { Incident inc =new Incident(); EditorProperties editor = new EditorProperties(); editor.ShowSpinButton = false; editor.DecimalPlaces = 2; editor.Locale = "es-AR"; ViewData["editmodel"] = editor; return View(inc); } |
We can access the For controls properties by defining it in the view model. If we set unobtrusive is false, then we can access all the properties directly in the builder itself. Please refer the following code snippet to know how to use For control properties when the unobtrusive is set to false.
[cshtml] @Html.EJ().NumericTextBoxFor(model => model.ExchangeRate).ShowSpinButton(false).DecimalPlaces(2).Locale("es-AR") |
For your convenience we have prepared a simple sample based on your requirement and the same can be downloaded from the following location.
Sample Location: Sample
Please let us know if you have further concern.
Regards,
Kaliswaran S