PDA

View Full Version : Datastore and html



mg
24 Apr 2007, 4:21 AM
Hi,

Ive been reading through the docs and maybe Ive missed something, but is it possible to use already generated html as data for controls, like grid? I.e. to simply point the grid to the already existing <table> in the dom and tell it to wrap it? From what I gather you use DataStore as the main abstraction for data <-> ui, is there a static html data store somewhere?

Cheers,
Magn

Animal
24 Apr 2007, 4:40 AM
You can use an XmlReader to read an existing HTML table into a Store.

That's what the "from markup" grid example in the examples section of the API docs does.

mg
24 Apr 2007, 6:23 AM
Thank you.

Of course it was right there in the examples :)