Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vikky on Apr 28, 2008 23:05
open dhtmlx forum
combo box problem

Hi,

I am opening highslide on setOnRowSelectHandler function which works fine, but in any row I have one combo box also and if I am selecting this combo box then both highslide and combo box appears.
So what I want is when I am selecting any other column highslide should appear and when I am selecting combo box only drop down should appear.

Please help...TIA
Answer posted by Support on Apr 29, 2008 02:24
I'm not pretty sure, but the onRowSelect event provides info about column index, so you can check which type of column is, and implement necessary behavior

grid.attachEvent("onRowSelect",function(id,ind){
    if (grid.getColType(ind)=="co") return true; // do nothing for column with combo

    do_something(); // execute code for any other type of column
    return true;
})