Unanswered: How To Use FormPanel with a XTemplate?
Unanswered: How To Use FormPanel with a XTemplate?
I have been messing around with this for a few day and needed to post to see if anybody has advice.
I would like to use a form panel with a custom layout, XTemplate. Everything in the API docs seems to say, yes you can use and XTemplate with the form panel but I'm just not able to get it to load. No errors and it load the template just fine just not binding data.
I have tried/change a lot of little things and just messed around with it but no luck. Does anybody know a good article or post that could give me some guidance?
Please use code tags when posting code (# button on the editor toolbar).
I could be wrong but I don't believe this is an appropriate use of tpl. That option is used in conjunction with the data config option or the update() method. It doesn't use a full-blown model, it just takes a JavaScript object and pulls out the properties. See the docs for XTemplate for example data.