[CLOSED] RowExpander Renderer and store bind on this.record

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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]

Similar Threads

  1. Replies: 2
    Last Post: Aug 07, 2014, 3:56 PM
  2. [CLOSED] ROWEXPANDER: not able to read record from listener on expand
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 08, 2013, 4:28 AM
  3. [CLOSED] Bind GridPanel in RowExpander
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 23, 2011, 1:58 PM
  4. [CLOSED] Gridpanel record bind
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jan 03, 2009, 5:27 AM
  5. Rowexpander renderer
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 21, 2008, 4:29 AM

Posting Permissions