Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kunal on Nov 14, 2008 01:03
open dhtmlx forum
grid with subgrid

Hello,

I have a query about grid with subgrid...

I am loading grid with subgrid with custom xml .ie. xmlB format
in my code like..

mygrid.parse("xmlString","xmlB");

My custom xml string consists of xml required for parent grid as well as for child grid...

I am able to load the grid... but the plus icon gets invisible...
So that I am unable to view the contents of my subgrid....


So please tell me ,Is there any way to resolve this problem?
so that i can view my subgrid inside my main grid using same input...






Answer posted by Support on Nov 14, 2008 01:40
The icon shown when
 - cell has sub_row_* type ( dhtmlxgrid_excell_sub_row.js included ) 
 - cell has some non-empty value 

So if you correctly defined type and had some value provided - cell must render plus icon. 
In case of custom sub-grid loading type you will need use onSubGridCreated event to init such grid with data
Answer posted by neha on Nov 19, 2008 00:39

Hi,

Yes I have done the above i.e. columnType is sub_row_grid and included the js file and my cell has non empty value..

Only difference is that if my cell has some value like # / alphanumeric then it works..

but if my cell has value as xml itself it does not work.. I am using professional edition where would the fix be ?

i..e my cell has value <addresses>

                               <Address><line1>dadar</line1><city>mumbai</city> </Address>

                             </addresses>

Answer posted by Support on Nov 20, 2008 06:44
Please try instead of 
<cell>
<addresses> 
  <Address><line1>dadar</line1><city>mumbai</city> </Address>
  </addresses>
</cell>

use

<cell><![CDATA[
<addresses> 
  <Address><line1>dadar</line1><city>mumbai</city> </Address>
  </addresses>
]]></cell>