May 19, 2015, 9:25 PM
[CLOSED] RowExpander Renderer and store bind on this.record
.Plugins(
X.RowExpander()
.Renderer("if (record.Splits.lenght === 0) { return false; }")
.SingleExpand(false)
.Component(X.GridPanel()
.HideHeaders(true)
.Store(X.Store().ModelName("UsageDataModelList"))
.ColumnModel(
X.Column().Text("").Width(82),
X.DateColumn().Text("Date").DataIndex("DATE").Width(90),
X.Column().Text("Ref").DataIndex("REFERENCE").Width(60),
X.Column().Text("").Width(120),
X.Column().Text("Details").DataIndex("DETAILS").Width(240)
)
.Listeners(l =>
{
l.ViewReady.Handler = "this.bindStore(record.usages);";
l.ViewReady.Delay = 1;
})
)
)
This is my Row Expander but it doesn't work well. The selected record has a Splits property which is a List<Class> This list should be presented in the expanding grid.
How can I get the actual Splits property from the record please?
THank you
Last edited by Daniil; Jun 08, 2015 at 10:16 AM.
Reason: [CLOSED]