Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mike on Jan 01, 2010 06:53
open dhtmlx forum
Grid loadXML

Hello,

I am new and am very interested in porting from our ActiveX grid control to dhtmlx Grid.

So that we may better describe that grid, we'd like to perhaps implement a metadata element.

An example of this is... Because a user can potentially query for a very large result set, our system provides what we refer to as blocking. Basically it allows the result set to remain on the database server, allowing the client to step through (grid) blocks as they see fit. Typically the Grid displays a block of a few hundred records.

Can you recommend how I might best access the extra XML (example: metadata/currentblock) element passed within in the XML below, using the dhtml library? I have been getting oriented with dhtmlx, but thought I'd ask in case. There are a few other scenarios for metatdata.

Thank you sincerely, Mike

<rows>
<metadata>
<currentblock>0</currentblock>
<totalblocks>4</totalblocks>
</metadata>
<head>
<column type="ed" align="left" width="190">Policy Number</column>
<column type="ed" align="left" width="200">Description</column>
<column type="ed" align="left" width="50">Ins</column>
<column type="ed" align="left" width="50">Payee</column>
<column type="ed" align="left" width="80">Exp.date</column>
<column type="ed" align="left" width="10">Bill Type</column>
</head>
<settings>
<colwidth>%</colwidth>
</settings>
<row id="0">
<cell>86502</cell>
<cell>Test eform defect</cell>
<cell>AET</cell>
<cell>6</cell>
<cell>11/12/2010</cell>
<cell>A</cell>
</row>
</rows>
Answer posted by dhxSupport on Jan 04, 2010 03:38
You can use userdata in xml. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:storing_additional_data