Read Previous Example First!
In this example, we’ll improve our ExtJS 4 model to include an “association” that it will read from XML produced by AJAX call to ASP.NET. Most common association is one to many, for example: your Client can place multiple Orders. An ExtJS 4 data store and model can accommodate this.
The new XML data packet will look like this; notice hiddenAttributes:
<?xml version="1.0" encoding="utf-8"?> <matches> <match> <id>0</id> <name>Number 0</name> <hiddenAttributes> <attr> <name>hidden1</name> <value>val1</value> </attr> <attr> <name>hidden2</name> <value>val2</value> </attr> </hiddenAttributes> </match> <match><id>1</id><name>Number 1</name></match> ... </matches> |