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 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,


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

dhtmlxgrid_excell_sub_row.js, line 159
can be replaced with

now you can specify in XML

       ... 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


Please check attached sample. (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,


Sorry, it works now!