Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by gwgiswebmaster on May 29, 2008 09:12
open dhtmlx forum
ro eXcell type - adding event handler to

I need a read-only eXcell that responds to an onClick or onDblClick event. it appear these cells do not respond to anything. what I'm trying to do is have a search window come up when cell is clicked on and have data from that search populate the cell. don't need help with 2nd part, just being able to click the cell so I can call my search function.
Answer posted by Support on May 30, 2008 03:39
The grid provides next events
    onRowSelect
    onRowDblClicked

which fired when cell clicked, or dbl-clicked

    grid.attachEvent("onRowSelect"function(id,ind){
          if (ind == INDEX ) alert("click at row "+id);
          return true;
    })


where INDEX - index of necessary column