Hello,
I am currently using the pro version of dhtmlxgrid.
While defining the grid, I am setting the column type for 1 of my column as “edn”.
Then setting the number format for that column.
Here is the sample code:
grid = new dhtmlXGridObject('gridBox');
grid.setColTypes("ro,ro,ron");
grid.setNumberFormat("0,000", 2);
The column is functioning properly, in terms of the number format I want. Commas are also displayed correctly.
But when I enter a value with alphabets other than numbers, the value is edited automatically.
For Eg:
If i enter “123abc4” and click any other cell, i get “123” in the original cell.
All the integers to the right of the alphabets “abc” are getting erased automatically.
Is this the default functioning of the “edn” coltype??
If yes, then how can I disable this functionality??
Actually I have my own JS function for checking numeric values, and I want to use that every time a cell is edited. No automatic pruning of values should happen.
Thanks.