:: Forum >>

Loading from xml data island and asigning row IDs

Hi,

how can I assign a row id to every row when loading the grid from inline xml ? Later on, how can I select a specific row using its id?

I need to process a xml data island like:
<companies>
<company id="MS">
<name>Microsoft</name>
<category>Software manufacturer</category>
</company>
<company id="SUN">
........
Daniel Vanesse
Wednesday, December 12, 2007
You can put id into additional (possibly hidden) column using '@id' xpath, for example,

table.setColumns(["name", "category", "@id"]);

To select this row you have to find row index either by scanning the dataset or maybe directly in the XML source.
Alex (ActiveWidgets)
Wednesday, December 12, 2007
Alex,

OK, I can add a hidden column, but I do not understand what you mean by "...or maybe directly in the XML source." What I need is a FAST access to a table row using a row id, equivalent to the DOM statement myGrid.getElementById("something");

FYI some tables hold >10000 rows and response time is a MAJOR concern.

Could you post a very simple example?

Many thanks in advance

Daniel
daniel vanesse
Thursday, December 13, 2007

This topic is archived.


Back to support forum

Forum search