Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141521 | Dec 15,2018 12:40 PM UTC | Dec 18,2018 09:45 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Numeric TextBox |
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>
<script>
var L10n = ej.base.L10n;
L10n.load({
'sv': {
'numerictextbox': {
incrementTitle: 'inkrementstitel', decrementTitle: 'minskningstitel'
}
}
});
function loadCultureFiles(name) {
var files = ['currencies.json', 'numbers.json'];
var loader = ej.base.loadCldr;
var loadCulture = function (prop) {
var val, ajax;
ajax = new ej.base.Ajax('/node_modules/cldr-data/main/sv/' + files[prop], 'GET', false);
ajax.onSuccess = function (value) {
val = value;
};
ajax.send();
loader(JSON.parse(val));
};
for (var prop = 0; prop < files.length; prop++) {
loadCulture(prop);
}
}
//Load the needed culture files and set the culture for global
loadCultureFiles("sv");
ej.base.setCulture('sv');
</script> |
<ejs-numerictextbox id="numeric" value="12" decimals="2"></ejs-numerictextbox> |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.