Results 1 to 2 of 2

Thread: Problem with Treesorter

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    236
    Vote Rating
    1
      0  

    Default Problem with Treesorter

    Hi

    I am using treesorter for my treepanel. I defined custom attributes...

    like
    Code:
    fields:['text',{name:'run_order',type:'int'}],
    My treesorter code...

    Code:
    var sorter = new Ext.tree.TreeSorter(Ext.getCmp("customers_orders_tree"), {property:'run_order',folderSort:true,dir: "asc",caseSensitive: true
    
    });
    run_order is type integer. But sorting is done for string ..It takes run_order as string type not an integer.
    What is the mistake in my code.

    Can any one please give me the idea.

    I appreciate any help

    Thank You.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    What is the problem? Not sorting correctly? Not sorting at all?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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