-
how to i align the text for a particular cell
-
i want user to restrict inputs to only integers. or bettwr i have a below masking code how can i integrate that with the cell
the below
for (var i = 0; i < gridPotList.getRowsNum(); i++) {
var rowId = “R” + i
gridPotList.forEachCell(rowId,function(cellObj,ind){
if(ind >2) {alert(cellObj.name()); cellObj.setCss("text-align:right;"); var dealAmountMask = new NumberMask(amountParser, cellObj, 9); dealAmountMask.allowNegative = false; dealAmountMask.leftToRight = true; } }); }
- you can use setCellTextStyle() method docs.dhtmlx.com/doku.php?id=dhtm … ltextstyle
- You can use grid validation docs.dhtmlx.com/doku.php?id=dhtm … validation