Categories | Question details Back To List | ||
Selected Cell Hello, How can i know the ID of the cellected cell. I try to use the fonction cellById without parameter but there is a bug and it doesn't work. And if this function has no bug, how with a dhtmlXGridCellObject can i know the ID of the cell ?? Regards Answer posted by dhxSupport on Nov 18, 2009 01:49 If you have dhtmlXGridCellObject you can get id of the row and cell index with: var ind=obj.cell._cellIndex; var id=obj.cell.parentNode.idd; Answer posted by Steve Boulay on Nov 18, 2009 02:09 Thanks for answer. But you don't answer why the function cellById without parameter doesn't work. Regards Answer posted by dhxSupport on Nov 18, 2009 02:28 cellById(row_id, col) require parameters * row_id - row id * col - column index This parameters are mandatory. There is no way to use this method without row Id or column index parameter. Answer posted by Steve Boulay on Nov 18, 2009 02:44 OK But How can i know the id or the index of the selected cell ??? regards Answer posted by dhxSupport on Nov 18, 2009 02:51 You can use methods: getSelectedRowId, getSelectedCellIndex. http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:api_toc_categories#selection |