Grid with subgrid

Hi all,



I already checked your very good example of a Grid with a Subgrid, and it works perfectly like we can see below:





sub.xml

Sub grid 1









But I would like to know if it’s possible to insert directly XML instead of the XML filename between the tag. I’ve been trying and I already checked the knowledge base for some subject related with my doubt, without any success.



Could you please help me with this?



Thanks in advance,

Paulo

Current version doesn’t support such feature, but it can be modified without serious changes

dhtmlxgrid_excell_sub_row.js, line 159
    td._sub_grid.loadXML(c,function(){
can be replaced with
    td._sub_grid.loadXMLString(c,function(){

now you can specify in XML



<![CDATA[
   
       ... any grid xml here ...
   
]]>

Sub grid 1





Just perfect =)

Thanks a lot

Hi again,

I’ve been trying…

But is not working…I’ve already changed the js file with refresh in the browser I put the tags exactly how you said but I get the error "Error type: LoadXML Description: Incorrect XML"

Could you please help me with that?

Thanks a lot

Paulo

Please check attached sample.

1199985187.zip (3.59 KB)

Thanks a lot for answering me and to send me the example that is working.

But could you please change your example so instead of loading from a xml file could you load from a XML string.

Somehow I can’t do it .


Thanks a lot in advance,

Paulo

Sorry, it works now!
=)

Thanks