Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Suhrit on May 28, 2009 06:28
open dhtmlx forum
Img field in subgrid

Hi

I am implementeing subgrids in my grid and have a column of type IMG in the subgrid. I want to delete the row in subrid when I click the image in the subgrid.

Please suggest as to how I can perform this.

Thanks
Answer posted by dhxSupport on May 28, 2009 07:30
In the "img" column corresponding cell value in XML should be a "^" delimited list of following values:
  1st - image src
  2nd - image alt text (optional)
  3rd - link (optional)
  4rd - target (optional, default is _self)

  some.gif
  some.gif^alte text
  some.gif^alt text^http://dhtmlx.com^_blank
  some.gif^alt text^javascript:doSomething()^_self

Sor you can use 4rd parameter to set function which will delete row from sub grid