Grid = new dhx.Grid(null, {
columns: [
{id: “a”, header: [{ text: “a”, align: “center” }]},
{id: “b”, header: [{ text: “b”, align: “center” }]},
editable: true
});
When adding a cell to enter the a column
I want to use the following regular expression so that only numbers can be entered.
this.value = this.value.replace(/[^0-9]/g,’’);
How can I apply this?