1. #1
    Sencha User
    Join Date
    Jun 2011
    Location
    Bangalore, India
    Posts
    176
    Vote Rating
    2
    Answers
    4
    renganathan is on a distinguished road

      0  

    Default Unanswered: Tree grid with checkbox model and paginaton

    Unanswered: Tree grid with checkbox model and paginaton


    Hi all,

    Is it possible to include check-box model and pagination in tree grid ?

    I tried to implement this, but not working .

    can someone suggest how to do that?
    Thanks,

    RENGANATHAN M G

  2. #2
    Sencha User
    Join Date
    Dec 2009
    Location
    Enschede, The Netherlands
    Posts
    327
    Vote Rating
    13
    Answers
    16
    flanders will become famous soon enough

      0  

    Default


    An Checkbox Selection Model can be used on tree's, just like it can be used on a 'regular grid'

    Code:
    Ext.define("some.abstract.base.Tree", {
        extend: "Ext.tree.Panel",
        alias: "widget.basetree",
            constructor: function(config) {
            Ext.applyIf(config, {
                border: 0,
                bodyStyle: "background-color: transparent;",
                rootVisible: false,
                selModel: Ext.create("Ext.selection.CheckboxModel"),
                hideHeaders: true,
                useArrows: true
            });
            this.callParent([config]);
        }
    });
    On pagination. If I'm not mistaken pagination is not supported yet on treestore's. But maybe deferred loading of children is enough split of datathroughput for you?
    Last edited by flanders; 30 Nov 2011 at 2:37 AM. Reason: indented the code again. ty dear editor

Thread Participants: 1

Tags for this Thread