PDA

View Full Version : Loading a Grid via form.load()



novahokie
29 Jun 2009, 8:29 AM
I have a pretty complex form that I am loading using BasicForm.load with a configured JsonReader. Each object can have an Array of lineItems. The other data mapped to specific form fields displays correctly and I figure I will have to populate the grid manually. With the current api it looks like there isn't an easy way to get access to the record after the form loads without calling BasicForm.updateRecord().

What is the best way to also populate the list or grid with this array?

Thanks!

BitPoet
29 Jun 2009, 10:55 PM
You could hook to the BasicForm's actionComplete listener and access the action's response from there, extract the data and pass that to the grid's underlying store.