Results 1 to 4 of 4

Thread: Nested List Back-Button not working

  1. #1

    Default Nested List Back-Button not working

    Hey there,
    im using a nested list in my app. It loads data and i can navigate forwards.
    The back-button shows up und changes its title properly but when i tap it, nothing happens. I added breakpoints in functions like onBackTap, but it seems they aren't called.

    Here's my code (created with Architect):
    Container with Nested List
    Code:
    {
                                            xtype: 'container',
                                            title: 'Lagerpltze',
                                            itemId: 'mycontainer52',
                                            layout: {
                                                type: 'vbox'
                                            },
                                            items: [
                                                {
                                                    xtype: 'nestedlist',
                                                    flex: 1,
                                                    id: 'LagerplatzListe',
                                                    itemId: 'LagerplatzListe',
                                                    backText: 'zurück',
                                                    displayField: 'name',
                                                    emptyText: 'Keine Lagerplätze vorhanden',
                                                    store: 'LagerplatzTreeStore',
                                                    title: 'Lagerplätze'
                                                }
                                            ]
                                        }
    TreeStore with Proxy and Reader

    Code:
    Ext.define('kasse.store.LagerplatzTreeStore', {
        extend: 'Ext.data.TreeStore',
    
        requires: [
            'kasse.model.LagerplatzTree'
        ],
    
        config: {
            autoLoad: true,
            autoSync: false,
            model: 'kasse.model.LagerplatzTree',
            storeId: 'LagerplatzTreeStore',
            nodeParam: 'children',
            proxy: {
                type: 'ajax',
                url: './json/getLagerplatzTree.php',
                reader: {
                    type: 'json'
                }
            }
        }
    });
    Model:
    Code:
    Ext.define('kasse.model.LagerplatzTree', {
        extend: 'Ext.data.Model',
        alias: 'model.LagerplatzTree',
    
        config: {
            fields: [
                {
                    name: 'kuerzel'
                },
                {
                    name: 'kuerzel_anzeige'
                },
                {
                    name: 'name'
                },
                {
                    name: 'id'
                }
            ]
        }
    });
    Any help/idea on how to fix this appreciated.
    Thanks

  2. #2

    Default

    Is there any special configuration needed? Or could there be a configuration which overrides the buttons standard-function. The list is nested several containers deep...

  3. #3

    Default

    Another strange thing is, that I can't catch any 'back'-event from the nested list. Not with the controller neither with the nested list by appending an listener.

  4. #4
    Sencha User
    Join Date
    Sep 2013
    Posts
    2

    Default try removing the layout

    i don't know if you already fixed this problem but I get to work it out by removing the layout w/c in case for me is:

    layout: fit

    but when I removed that definition, it works and also a slide animation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •