Hello,
I am using web api for fetch data and bind data in form. so when i assign value in numeric textbox using e-value its working fine. but when data is coming from web api i am using below code for setting value in numeric textbox.
Javascript:
$("#datePosition").ejNumericTextbox({ value: parseInt($scope.template.sections[0].dateTimeProperties.datePosition) });
CSHTML:
<input id="datePosition" ng-model="template.sections[0].dateTimeProperties.datePosition" type="text" class="form-control" ej-numerictextbox e-minvalue="1" e-maxvalue="999" />
above code is also working but i am getting error in console. i am attaching screenshot of console error stack.
so if is there any other way to set data in numeric textbox using angularjs?
Thanks
Bharat
Attachment:
20151017_1802NumericTextbox_bd826c13.7z