Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michal on Jan 06, 2010 14:22
open dhtmlx forum
onDynXLS

I added a code similar to the below to my grid initialization :

grid.attachEvnet("onDynXLS",function(pos,count){
       dhtmlxAjax.post("some.php?pos="+pos+"&count="+count,"some=value");  //or any other similar code
       return false;
})

(after grid.enableSmartRendering(true);)

However, the browser (IE7) fails on this command: 'object does not support this property or method'

I have the professional edition and also included

<script src="codebase/dhtmlxcommon.js"></script>

<script src="codebase/dhtmlxgrid.js"></script>

<script src="codebase/dhtmlxgridcell.js"></script>

<script src="codebase/excells/dhtmlxgrid_excell_link.js"></script>

<script src="codebase/ext/dhtmlxgrid_srnd.js"></script>

what am I missing?

(I need to use smart rendering as I have ~15K lines, and I need onDynXLS for using POST)

Thanks, Michal

Answer posted by Alex (support) on Jan 11, 2010 05:29

Try to use attachEvent method instead of attachEvnet:

grid.attachEvent("onDynXLS",function(pos,count){ ...