1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    4
    Vote Rating
    0
    athaduphani is on a distinguished road

      0  

    Default Reload treegrid by passing a parameter

    Reload treegrid by passing a parameter


    Someone plz help in reloading a treegrid by passing a parameter or attribute to the servlet

    my tree grid is

    var tree = new Ext.ux.tree.TreeGrid({
    title: 'Core Team Projects',
    // width: (Ext.get('myTabPanel').getWidth()-30),
    height: 500,
    renderTo: Ext.getBody(),
    enableDD: true,
    autoLoad:false,
    // editable:true,
    columns:[{
    header: 'Name',
    dataIndex: 'name',
    width: 230
    },{
    header: 'length',
    width: 150,
    sortType: 'asFloat',
    dataIndex: 'length'
    }],
    loader: new Ext.ux.tree.TreeGridLoader({
    dataUrl: "/DataMig/programVariablesServlet",
    requestMethod: "GET",
    baseParams: {
    param: "1"
    }
    })
    });

    i tried something like this

    tree.getRootNode().reload({
    param: "3"
    });

    I changed the parameter(param) value to 3.But it didnt work....Pls help

    Thanks in advance..
    Last edited by athaduphani; 3 Feb 2012 at 12:17 AM. Reason: updated code

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,543
    Vote Rating
    873
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    1. Please post into the appropriate forum. I have moved this to the Ext JS 3 Help forum for you.
    2. Please always wrap you code in [CODE] tags.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.