Text Alignment of a cell

  1. how to i align the text for a particular cell

  2. 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;
     			
     		}
     	});	
     }
  1. you can use setCellTextStyle() method docs.dhtmlx.com/doku.php?id=dhtm … ltextstyle
  2. You can use grid validation docs.dhtmlx.com/doku.php?id=dhtm … validation