|118351||Feb 28,2015 03:30 PM||Mar 2,2015 04:57 AM||ASP.NET MVC||1|
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.
public ActionResult Index()
Incident inc =new Incident();
EditorProperties editor = new EditorProperties();
editor.ShowSpinButton = false;
editor.DecimalPlaces = 2;
editor.Locale = "es-AR";
ViewData["editmodel"] = editor;
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.
@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.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.