Results 1 to 3 of 3

Thread: TreeGrid - sortType issue - 3.1

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    330

    Question TreeGrid - sortType issue - 3.1

    Hello All,

    I'm trying to implement the new treeGrid component and I'm running into an issue with the sorType. The grid loads the data without any problems except that its doesn't expand all the folders, and only does so when I do a sort on one of the columns.

    I'm not defining any sortType bur firebug keeps on showing the following error:

    Code:
    n1.attributes[p] is undefined
    [Break on this error] var v1 = sortType ? sortType(n1.attrib...s[p] : n1.attributes[p].toUpperCase());\n
    This seems to point to ext-all-debug.js (line around 32031).

    Code:
    var v1 = sortType ? sortType(n1.attributes[p]) : (cs ? n1.attributes[p] : n1.attributes[p].toUpperCase());
            var v2 = sortType ? sortType(n2.attributes[p]) : (cs ? n2.attributes[p] : n2.attributes[p].toUpperCase());
    I'm using a very simple setup as shown below.

    Code:
    var treeGrid = new Ext.ux.tree.TreeGrid({
            title: 'Countries'
            ,columns:[{
                 header: 'Region'
                ,dataIndex: 'country_region'
                ,width: 230
            },{
                header: 'Country'
                ,dataIndex: 'country_name'
                ,width: 230
            },{
                 header: 'Database'
                ,width: 150
                ,dataIndex: 'database_name'
            }]
            ,dataUrl: 'wwv_flow.show?p_flow_id='+$v('pFlowId')+'&p_flow_step_id=0&p_instance='+$v('pInstance')+'&p_request=APPLICATION_PROCESS%3DTREEGRID_COUNTRIES'
        });
    The only modification I have made is inside the TreeLoader itself, in which I changed the nodeParameter from:

    Code:
    //nodeParameter: 'node',
    nodeParameter: 'x01',
    Thansk you for any assistance

    Jack

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    330

    Question

    Just a quick update,

    The error I get is from ext-all-debug.js None of the folders are expanded and this error happends when I try to expand one of the folders except for the first folder.

    Code:
     var v1 = sortType ? sortType(n1.attrib...s[p] : n1.attributes[p].toUpperCase());\next-all-debug.js (line 32033)
    Anybody got any clues?

    Thanks

    Jack

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    330

    Thumbs up [RESOLVED]TreeGrid - sortType issue - 3.1

    Hello All,

    So the issue was that I did not include all the data_indexes/columns in my child records.

    Thanks

    Jack

Posting Permissions

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