PDA

View Full Version : XTemplate in GXT: How-to?



ubr
24 Oct 2008, 4:03 AM
While the usage of Ext.XTemplate seems me clear so far, I have no clue how to use it under GXT (i.e. the class com.extjs.gxt.ui.client.core.XTemplate). Especially, how can I define the parametrization of XTemplate when programming in GXT? If it plays a role: It is planned to fetch the parameters by a service request to the server.

Can anybody hint me at some example code, how-to, tutorial, or the like, please?

gslender
24 Oct 2008, 4:16 AM
this example might help

http://extjs.com/examples/view/listview.html

cheers,
grant

ubr
24 Oct 2008, 4:36 AM
Thanks gslender.

The example has directed me to look into the implementation of ListView, which furthur directed me to the com.extjs.gxt.ui.client.util.Util and com.extjs.gxt.ui.client.js.JsObject classes. With them the solution seems me close. :)