Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by shahram on Apr 25, 2008 06:43
open dhtmlx forum
doOnRowSelected not working

I am following
http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/step-by-step/ch_basics.html#Step_7_-_Event_Handlers

but no matter what "celInd" is always 0 with doOnRowSelected ,
I am stuck in the middle of my work for this.
Answer posted on Apr 25, 2008 07:38
Did you check the basics.html from
    http://dhtmlx.com/docs/products/dhtmlxGrid/doc/step-by-step/dhtmlxgrid_sbs_basics.zip
The sample included there is the same as used in tutorial and it works fine providing correct both rowID and cellIndex

Please beware that onRowSelect event fire only once per row selection, so if you selected the first column and clicking on the second column of already selected row - there will not be second event.
Answer posted by shahram on Apr 25, 2008 07:48
well I did that for sure, the same thing,


in all the other parts of your site (docs, samples...) , it is always mentioning 1 argument for "doOnRowSelected", maybe that is the issue.
rowID is correct but cellIndex is always 0,

for example in your scripts rowIDs are returned as a , b & c but cellIndex is 0,

I have checked in FF 2.0 , FF 3beta, IE7 , IE8,
Answer posted by Support on Apr 25, 2008 08:23
Please check attached sample.

>>t is always mentioning 1 argument for "doOnRowSelected"
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/events.html#grid_api_ev

onRowSelect
Event raised immideatly after row was clicked.
  • ID of clicked row
  • index of clicked cell

  • Attachments (1)
    1234123.ZIP92.18 Kb
    Answer posted by shahram on Apr 25, 2008 08:33
    the same thing, even if I uploaded it to an online hosting, it doesn't work.
    I also have firebug installed in my FF and it doesn't also return any errors, the value is just "0"
    Attachments (1)
    index.JPG54.13 Kb
    Answer posted by Support on Apr 25, 2008 08:58
    This is pretty strange because the same sample works for me fine enough.
    Attachments (1)
    works.png13.35 Kb