Categories | Question details Back To List | ||
onGridReconstructed is not working Hi, I used 'onGridRecontructed' but I doesn't work. <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxcommon.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgridcell.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxtreegrid.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_splt.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_hmenu.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxprotobar.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxmenubar.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxmenubar_cp.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_nxml.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_excell_link.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_mcol.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_filter.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_drag.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_excell_cntr.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxcommon_debug.js"></script> <script language="javascript" src="<%=ConstantValue.ROOT_PATH%>/js/mc/grid/dhtmlxgrid_srnd.js"></script> ... 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.. Answer posted by Support on Oct 23, 2008 03:20 The issue is not reconstructed locally. The sample is sent by email. Answer posted on Oct 23, 2008 17:40 Thank your for your answer. you mean, Using "mygrid.attachEvent('onGridReconstructed',function(){ Instead "mygrid.attachEvent("onGridReconstructed", lfn_ResetCount); ..... function lfn_ResetCount(){ 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..
Answer posted by Support on Oct 24, 2008 01:10 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 |