1. #11
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    looks good violinista - but what happens if cols are resized?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  2. #12
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    found the old code i copied from rodiniz's old site.

    here it is
    [code]
    /*
    Function that does avg or sum of column

  3. #13
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    nice good that you collected it, thx!
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  4. #14
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      0  

    Default


    Ok, i might be dumb, but I have no idea how to use this...
    I am guessing i need to provide instructions on what columns to aggregate, and that this should be via a 'aggregate' property in the reader?
    but then I have no idea how to actually make it insert the line, and at what point during the load this should be done.
    Would appreciate any help, extending ext is still a bit new to me.

  5. #15
    Ext User violinista's Avatar
    Join Date
    Apr 2007
    Location
    Serbia
    Posts
    293
    Vote Rating
    0
    violinista is on a distinguished road

      0  

    Default


    Quote Originally Posted by steffenk View Post
    looks good violinista - but what happens if cols are resized?
    Xaxa, Columns are locked by columnModel so there is no chance for it.

    Maybe to hook column onresize event and modify footer <div> padding according to column size, but this is only temporary solution - until Ext 2.0
    "It is better to be young, pretty and rich instead old, ugly and poor."
    (c) Alan Ford.

  6. #16
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    i think solution mystix posted is the best one, i will check this out if i get it to run.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  7. #17
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    I got it to work, see the DEMO
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  8. #18
    Ext User violinista's Avatar
    Join Date
    Apr 2007
    Location
    Serbia
    Posts
    293
    Vote Rating
    0
    violinista is on a distinguished road

      0  

    Default


    Nice share, thanks

    What about vertical-scrolling grid? Does it work with extra aggregate row or no?
    "It is better to be young, pretty and rich instead old, ugly and poor."
    (c) Alan Ford.

  9. #19
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    should be no problem, the extra row is always the last and may be only visible when scroll down.

    Did you tried the sorting? Last row stays.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  10. #20
    Ext User
    Join Date
    Sep 2007
    Posts
    48
    Vote Rating
    0
    thejdog is on a distinguished road

      0  

    Default


    Very nice steffenk! Exactly what I'm looking for at the moment! I couldn't tell you how happy I am at the moment.

    And with 2.0 I can't wait until grouping comes out.