Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by velmurugan on May 19, 2009 23:40
open dhtmlx forum
How to prevent collapsing subgrid when Check/Uncheck the check box in the first column?

Hi,
I have a grid with subgrid. In the main grid, i have a first column name called manage. This manage column having vaues as check box. When i open the subgrid by clciking the (+) sysmbol, the subgrid is expanding. Now i check/uncheck the checkbox palced in the manage column, it collapse the subgrid. How to resolve this issue?
Please help me.
Answer posted by vel on May 20, 2009 02:24

Answer posted by vel on May 20, 2009 02:26
Hi,
It is happening not only clciking the checkbox,, when you double clcik the cell in the row, the row got collapsed the subgrid. i want prevent this?
how to do that?
thanks
Answer posted by Support on May 20, 2009 05:45
By default , when any cell inside row switched to edit state - related sub-row closed. 
It is done in such way to allow normal editors rendering. 

The only way to change behavior - code modification. 
You can locate line in dhtmlxgrid_excell_sub_row.js , which starts from 
        that.attachEvent("onEditCell",function(a,b,c){
and comment it. 


By the way, current logic not affects checkbox or radio columns, change of their value will not cause sub-row closing.