I'm using the editablegrid library to make a table editable so I can later edit and update the database I'm pulling data from. I'm having some issues with the metadata header in the jsp. I've got:
<script src="js/editablegrid-2.0.1.js"></script>
<script>
window.onload = function() {
editableGrid = new EditableGrid("grid");
// we build and load the metadata in Javascript
editableGrid.load({
metadata : [ {
name : "ID",
datatype : "string",
editable : false
}, {
name : "DATE",
datatype : "date",
editable : false
}, {
name : "PRICE",
datatype : "double (m, 10)",
editable : true
} ]
});
editableGrid.attachToHTMLTable('Grid');
editableGrid.renderGrid();
};
</script>
This all works quite nicely, however the PRICE column that is displayed is kinda weird, it uses a comma instead of a fullstop and vice versa. So for example:
1.5 (one and a half) will be displayed as "1,5" 1,500 (one thousand five hundred) will be displayed as "1.500"
Does anyone know how to change this?