Using Dhtmlx with django

Has anyone did that before.
Ive found a tutorial and it got me going.
rkblog.rk.edu.pl/w/p/using-d … plication/
I can barely see my data in grid, but having a hard time to customize it, imagine u have like 10 grids, maybe more, and u have to customize them one by one, it is impossible to maintain.
I read how to get grid going with xml data, and impressed, and html too. Somehow if I can manage generating xmls from my django models with ease, it will be great.
is there any pythonist can recommend me a way to creat xml data and use it in django?

Just to show, how complicated it can be.

<?xml version="1.0"?>


SalesBook TitleAuthorPriceIn StoreShipping 123102030BestsellerDate of Publication
-1500A Time to KillJohn Grisham12.99124005/01/1998
1000Blood and SmokeStephen King0124001/01/2000
-200The RainmakerJohn Grisham7.99048012/01/2001
350The Green MileStephen King11.10124001/01/1992
700MiseryStephen King7.700na001/01/2003
-1200The Dark HalfStephen King0048010/30/1999
1500The PartnerJohn Grisham12.99148101/01/2005
500ItStephen King9.700na010/15/2001
400Cousin BetteHonore de Balzac011012/01/1991
-100Boris GodunovAlexandr Pushkin7.1511001/01/1999
-150Alice in WonderlandLewis Carroll4.1511001/01/1999

I am successfully using Django 1.4.2 with dHtmlx grid.
Does this example help your problem?
The key is the for loop in the template.
I’m still working out how to make use of all of the dhtmlx features, but I am using these grids all over my app for creation and updating of grids.

Here’s my xml template for one of my grids:

<?xml version="1.0" encoding="UTF-8"?>
<rows total_count="{{ total }}">
	{% for i in data %}
	<row id="{{ i.id }}">
      <cell>{{ i.asset_id }}</cell>
		<cell>{{ i.quantity }}</cell>
		<cell>{{ i.description }}</cell>
		<cell>{{ i.box }}</cell>
      <cell>{{ i.fix_status|yesno:"1,0,0" }}</cell>
	</row>
	{% endfor %}
</rows>

This is the grid for some of the fields of this Model:

class Not_Available(models.Model):
    """
    a Not_Available is used to document and alert project managers of items that were force filled on an order, but were "not available" in R2.
    """
    order = models.ForeignKey(Contract)
    asset_id = models.IntegerField()
    quantity = models.IntegerField()
    description = models.CharField(max_length=50)
    box = models.CharField(max_length=10)
    project_manager = models.ForeignKey(ProjectManager)
    fix_status = models.BooleanField()
    active = models.BooleanField()
    
    def __unicode__(self):
        return unicode(self.description)