Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Atul on May 14, 2008 10:54
open dhtmlx forum
dhtmlXGrid query cntr excell

Dear support team,

We have cntr type column in our grid.
How can we set this counter to start counting from second or third or any further row except first?

Thanks
Atul
Answer posted by Support on May 15, 2008 04:09
There is no built in API for such use-case, the only way - code modifications
You can update code of dhtmlxgrid_excell_cntr.js in next way
       
    line 48
cell.innerHTML = val;      
       
    can be rewritten as       
if (val==1) cell.innerHTML = "";
else cell.innerHTML = val-1;