multiline in subgrid

I can not get multiline to work in a subgrid, How to call enableMultiline function in subgrid ?

I get solution by adding sub_grid.obj.className = “obj” in my code

        mygrid.attachEvent("onSubGridLoaded", function(sub_grid,rId,rInd){                   
	           sub_grid.enableMultiline(true);
	           sub_grid.obj.className = "obj"; 
       })

but there’s problem when adding sub_grid.callEvent(“onGridReconstructed”, [])

        mygrid.attachEvent("onSubGridLoaded", function(sub_grid,rId,rInd){                   
	           sub_grid.enableMultiline(true);
	           sub_grid.obj.className = "obj"; 
                   sub_grid.callEvent("onGridReconstructed", []) 
       })

in IE & FF run it well but not in Chrome (header’s subgrid broken)
How to fix it ?


You may try to use onSubGridCreated event to enable the multiline content:

mygrid.attachEvent("onSubGridCreated", function(subgrid,rId,rInd){ subgrid.enableMultiline(true) return true; });
If issue still occurs for you - please, provide with any kind of sample of your code or with a demo link, where the issue can be reproduced.

Hi sematik,
Perfect, It Works now in Chrome.
Thank you very much :smiley: