onGridReconstructed is not working

Hi,



I used ‘onGridRecontructed’ but I doesn’t work.











































mygird.init();

mygird.splitAt(3);

mygrid.attachEvent(“onGridReconstructed”, lfn_ResetCount);

mygrid.enableDistributedParsing(true,20,250);

mygrid.enableDragAndDrop(true);

mygrid.enableTooltips(tooltipInfo);

mygrid.attachEvent(“onBeforeContextMenu”,my_pre_func);

mygrid.attachEvent(“onResize”, lfn_OnResize);





function lfn_ResetCount(){

mygrid._fake.resetCounter(0);

return true;

}





Here is data table, like this…



cntr PART NAME

1 A A’ name

2 B B’ name

3 C C’ name





I want to add row… PART ‘D’ between B an C, like this…



cntr PART NAME

1 A A’ name

2 B B’ name

3 D D’ name

4 C C’ name



Add row action is working but, cntr is failing, like this…(still PART ‘C’ is 3)



cntr PART NAME

1 A A’ name

2 B B’ name

3 D D’ name

3 C C’ name



Can I fix this problem? I use the latest version taken from dhtmlxgrid 2.0 package(from your ask for another question).

Help me…



The issue is not reconstructed locally. The sample is sent by email.


Thank your for your answer.



you mean, Using



“mygrid.attachEvent(‘onGridReconstructed’,function(){
  mygrid._fake.resetCounter(0);
return true;
 })”



Instead



“mygrid.attachEvent(“onGridReconstructed”, lfn_ResetCount);







function lfn_ResetCount(){
mygrid._fake.resetCounter(0);
return true;
}”



Am I right?



If I am right, It still has counter problem when add row action.



If I am wrong, What’s difference between my codes and your sample? Please help me…



 



 



 





 



 



 

These approaches are the same.

Did you get the issue in the provided sample ?

Please, provide the sample where issue can be recreated directly at the support@dhtmlx.com