Categories | Question details Back To List | ||
How to get column index from cell Hello my question is: How to get column index from cell, my code: function eXcell_button(cell){ if (cell){ this.cell = cell; this.grid = this.cell.parentNode.grid; } this.edit = function(){} this.isDisabled = function(){ return false; } this.setValue=function(val){ var row_id=this.cell.parentNode.idd; this.setCValue("<input type='button' value='"+val+"' onclick='abreHojaDatos("+row_id+","+cell.index+")'>",val); } } eXcell_button.prototype = new eXcell; // nest all other methods from base class BUT GET UNDEFINED, WHAT IS THE PROPERTY THAT GIVE ME THE INDEX COLUMN? Answer posted by dhxSupport on Jun 24, 2009 02:06 var ind=this.cell.cellIndex gives you index of a column Answer posted on Jun 24, 2009 07:15 Thanks !!!!! |