Hi nimbusgb,
Yes, I confirm that DynaGrid can be used to display your svg polygons and let Lightstreamer updates their style properties.
Please be sure to add the respective html nodes to those managed by the grid, for example:
dynaGrid.setNodeTypes(["div","span","img","a","input","svg","rect"]);
Then you should define a grid cell for your svg polygon:
[HTML] <td><svg width="40" height="15">
<rect data-source="lightstreamer" data-field="mypoly" data-fieldtype="extra" data-update="style.width" width="30" height="10" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
</svg></td>[/HTML]
Please note that in this case I have mapped the width property for automatic update with the field mypoly; if you need to update more than a single property you should implement that in the onVisualUpdate, something like this:
onVisualUpdate: function(key,info,domNode) {
if ( info.getCellValue("myflag") ) {
info.setCellAttribute("mypoly", "green", "green", "fill");
} else {
info.setCellAttribute("mypoly", "red", "red", "fill");
}
...
}
Hope that helps.
Regards,
Giuseppe