Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sam on Nov 06, 2008 10:01
open dhtmlx forum
Show Serial no in first coulmn of Grid

Hi I have to show serial no of the row in the first column of the grid. Drag and Drop is enabled on this grid. As soon as i drag and drop the serial no should get updated automatically.

How can i achieve this.

Thanks

Sam
Answer posted by Support on Nov 10, 2008 08:30
- include codebase/excells/dhtmlxgrid_excell_cntr.js
- set type of first column as "cntr"
- add next line to grid init
mygrid.attachEvent("onDrop",function(){
    mygrid.resetCounter(0);
});