PDA

View Full Version : [CLOSED] Grid: RowExpander does not display object graph data



posta07
26 Jul 2008, 9:06 AM
When using the RowExpander (and the Template to display the expanded data), I cannot get a child object in my model to display its data. I am using the {model.sub_model} notation. Is this a known limitation?

Example:



//
// Template for the row expander
Template template = new Template("<p><b>Owner Information</b><br><br><b>Name:</b>&nbsp;{owner.last_name}, {owner.first_name}</p>");

doni
15 Aug 2008, 8:30 PM
When using the RowExpander (and the Template to display the expanded data), I cannot get a child object in my model to display its data. I am using the {model.sub_model} notation. Is this a known limitation?

Example:



//
// Template for the row expander
Template template = new Template("<p><b>Owner Information</b><br><br><b>Name:</b>&nbsp;{owner.last_name}, {owner.first_name}</p>");


tri it



Ext.data.Record.create([
{ name: [0], type: "int"}, // id
{ name: [1], mapping:[1], type: "string"}, //owner.last_name
])


Template template = new Template("<p><b>Owner Information</b><br><br><b>Name:</b>&nbsp;{1}

posta07
16 Aug 2008, 7:51 AM
Your solution seems to be an EXTJS solution. Am I correct?
I am hoping this will be fixed on the GXT side.

darrellmeyer
18 Aug 2008, 8:29 PM
RowExpander now uses the new XTemplate which supports many more features than Template including nested objects. Changes are in SVN.

posta07
19 Aug 2008, 4:35 AM
Thank you Darrell!