1. #11

  2. #12
    Ext User
    Join Date
    Feb 2008
    Posts
    8
    Vote Rating
    0
    hnao is on a distinguished road

      0  

    Default


    Anyone know how to add a button on a column on an Ext.tree.ColumnsTree??

  3. #13
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by hnao View Post
    Anyone know how to add a button on a column on an Ext.tree.ColumnsTree??
    You need to code this yourself by overriding the onRender function.
    The main question for me is: What kind of Button do you want? What functionality are you going to expect? (Normal Button like in forms, tools like in Panelheaders oder dropdown-buttons like in gridheaders to generate a contextmenu?

  4. #14
    Ext User
    Join Date
    Feb 2008
    Posts
    8
    Vote Rating
    0
    hnao is on a distinguished road

      0  

    Default


    Hey wm003

    What I will do with the button is to generate a report wich I only need to do is somthing like this:
    Code:
    window.open(_CONTEXT_PATH+'/loadProjectReport.do?idPro=' + idPro+ '&iva=' + withIVA,'mywindow');
    but I haven

  5. #15
    Ext JS Premium Member smcguire36's Avatar
    Join Date
    Sep 2007
    Location
    Manchester, Connecticut, USA
    Posts
    99
    Vote Rating
    0
    smcguire36 is on a distinguished road

      0  

    Question Different Column Field Types?

    Different Column Field Types?


    Does anybody have any tips on how to code this editable column tree so that I can have a different editor for different data types in each column? For instance, I want my first column to be text using the Ext.form.TextField and the second and third columns to be dates, using the Ext.form.DateField editor.

    --Stewart McGuire

  6. #16
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by smcguire36 View Post
    Does anybody have any tips on how to code this editable column tree so that I can have a different editor for different data types in each column? For instance, I want my first column to be text using the Ext.form.TextField and the second and third columns to be dates, using the Ext.form.DateField editor.

    --Stewart McGuire
    This will require to override the UI of the tree or code your own TreeUI. I'm currently working on something like this and it takes some time.

  7. #17
    Sencha User
    Join Date
    Feb 2008
    Posts
    36
    Vote Rating
    0
    johnrembo is on a distinguished road

      0  

    Thumbs up some thoughts

    some thoughts


    great job!

    however - i found (I suppose most of us did) some necessary features missing - tree doesn't validate it's errors, like duplicated folder/item names, empty folder/item names. Also, most people dislike sending ajax requests on each click - so performed tasks should be recorded (deleted "ynode-103", moved "ynode-104" to "yhone-105"). That could let validate overlapped tasks (created node "ynode-15" + deleted "ynode-15" = no task). Lastly - column structure could have some grid features (filtering, sorting).

    this thing should not be left in current "alpha" stage!

    ps: I've implemented all of above except the last features mentioned. As soon as I will prepare normal example I'll upload it here.

  8. #18
    Ext User
    Join Date
    Dec 2007
    Posts
    26
    Vote Rating
    0
    relix01 is on a distinguished road

      0  

    Default


    Theres is a working example for different field editor types for each column.

    http://extjs.com/forum/showthread.php?t=25076

  9. #19
    Ext User
    Join Date
    Feb 2008
    Posts
    4
    Vote Rating
    0
    debarcar is on a distinguished road

      0  

    Thumbs up Is the "URL" column editable?

    Is the "URL" column editable?


    In my environment, in the sample, it seems the "URL" column uneditable...How to make it editable?

    Thanks!

  10. #20
    Sencha User
    Join Date
    Apr 2007
    Location
    Italy/UK
    Posts
    152
    Vote Rating
    0
    sj137 is on a distinguished road

      0  

    Smile cancelling tree double click

    cancelling tree double click


    Hi dpasichnik,

    thanks for your great example

    to cancel the doubleclick event that expands and collapses the nodes...

    simply add this to your code:

    Code:
    Ext.override(Ext.tree.TreeNodeUI, {
        onDblClick:  Ext.emptyFn
    });
    or for induvidual nodes:

    Code:
    myNode.getUI().onDblClick = Ext.emptyFn;
    (for a detailed discussion see: http://extjs.com/forum/showthread.php?t=9550)


    (Thank God for Animal ) and guys like you too!!