View Poll Results: Was this helpful?

Voters
325. You may not vote on this poll
  • Yes - Very Much

    250 76.92%
  • Yes - Had to tweak it

    45 13.85%
  • No - Maybe

    14 4.31%
  • Not at All!!!

    16 4.92%
  1. #121
    Ext User
    Join Date
    Jul 2007
    Posts
    20
    Vote Rating
    0
    lychorojostone is on a distinguished road

      0  

    Default


    Quote Originally Posted by mystix View Post
    i would think it would make more sense to show the subtotal for any given page (if used in a paging grid) as opposed to showing the total, until the last page is reached and the total for the entire paging grid is then displayed. (this, unfortunately, isn't supported atm.)

    thoughts?
    First of all... thanks for the answer!
    You are rigth... maybe showing both: subtotals ( what the user is looking at ) and totals would make more sense...
    Imagine a grid that shows losses and earnings ( with a lot of pages ). The end-user should see the total balance

    thoughts?

    Lisandro

  2. #122
    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


    yep, that's exactly what i had in mind.

    i have no need for that functionality atm, though it sounds like a fun side-project

    let us know if you decide to try your hand at it, and perhaps some of the folk here could chip in along the way.

    [edit]
    this should be somewhat simpler now, since i've recently refactored the code and added a rowIdx param to the calculation methods.

  3. #123
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    104
    Vote Rating
    9
    mcouillard will become famous soon enough

      0  

    Question summary cell value?

    summary cell value?


    Lovely extension, thank you. Question: how to get the value of a summary cell? I've looked all through the summary object using Firebug - no luck. I also checked the Store - seems the Summary data isn't there.

    Background: Summary in use on an EditorGrid. Most cells are editable, numeric. The summary values thus change on edit of main content cells. To "save and exit" the EditorGrid, I must check the right-most column's summary cell value and take action based on it's value.

    Any ideas?

  4. #124
    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


    @mcouillard: get a reference to the gridsummaryplugin, call gridsummaryplugin.getSummaryNode() and inspect the appropriate cell for the value you need.

  5. #125
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288
    Vote Rating
    0
    httpdotcom is on a distinguished road

      0  

    Default


    exactly...First I assigned
    Code:
    var summary = new Ext.ux.grid.GridSummary() ;
    and then, in my grid, I used
    Code:
    ...plugins:          [summary],...
    so, I could reference summary.getSummaryNode().
    mcouillard, try that and please post results.

  6. #126
    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


    Quote Originally Posted by httpdotcom View Post
    exactly...First I assigned
    Code:
    var summary = new Ext.ux.grid.GridSummary() ;
    and then, in my grid, I used
    Code:
    ...plugins:          [summary],...
    so, I could reference summary.getSummaryNode().
    mcouillard, try that and please post results.
    although it might be a good idea to somehow make the summary row data (or node for the matter) available to the grid...

    i'll chew on this over the weekend.

  7. #127
    Ext JS Premium Member mcouillard's Avatar
    Join Date
    Jun 2008
    Location
    Bucks County, PA
    Posts
    104
    Vote Rating
    9
    mcouillard will become famous soon enough

      0  

    Thumbs up


    Quote Originally Posted by mystix View Post
    @mcouillard: get a reference to the gridsummaryplugin, call gridsummaryplugin.getSummaryNode() and inspect the appropriate cell for the value you need.
    Solved. Thank you both, Mystix and httpdotcom!
    Code:
    ...
    var summary = new Ext.ux.grid.GridSummary();
    ...
      plugins: [summary],
    ...
    //get the DOM of the summary element, wrap in Ext Element, query the last TD, get the first array element and get the underlying text - no matter how nested
    var rightMostSummaryCell= Ext.get(summary.getSummaryNode().dom).query('td:last')[0].getText();
    Took me a bit longer than I thought to piece together the right methods, but that's mostly due to my inexperience with Ext JS in general. Though, and you may agree even more Mystix, it'd be nice to have the summary data stored in a more approachable place!

  8. #128
    Ext User
    Join Date
    Sep 2007
    Posts
    7
    Vote Rating
    0
    mondomon is on a distinguished road

      0  

    Default


    Quote Originally Posted by mystix View Post
    @eliezerreis, found 2 funky bugs in the demo:
    1. gridsummary row's columns don't get resized when their respective column headers are resized (i hope this wasn't part of my gridsummary implementation.. ). if the gridsummary row is toggled, the gridsummary row's columns are resized correctly.
    [edit]
    i should've mentioned i tested this in FF2.0.0.14
    I want first thank those that help contribute to this plugin. I am using this with a group summary grid and wondering if is there a fix for this bug?

    What function can I look into to get this to work.

  9. #129
    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


    check the rest of the thread. someone else has already posted tips on successfully using both gridsummary and groupsummary plugins together.

  10. #130
    Ext User
    Join Date
    Sep 2007
    Posts
    7
    Vote Rating
    0
    mondomon is on a distinguished road

      0  

    Default


    Quote Originally Posted by mystix View Post
    check the rest of the thread. someone else has already posted tips on successfully using both gridsummary and groupsummary plugins together.
    I have fixed the issue with the gridsummary row and groupsummary row not being resized correctly.

    Just replace doWidth with this
    Code:
    doWidth : function(col, w, tw) {
            var s = this.view.summary.dom, gs = this.view.getGroups(), r;
            s.firstChild.style.width = tw;
            s.firstChild.rows[0].childNodes[col].style.width = w;
            for (var i = 0, len = gs.length; i < len; i++) {
                r = gs[i].childNodes[2];
                r.style.width = tw;
                r.firstChild.style.width = tw;
                r.firstChild.rows[0].childNodes[col].style.width = w;
            }
        },
    and replace doAllWidths with this
    Code:
    doAllWidths : function(ws, tw) {
            var s = this.view.summary.dom, gs = this.view.getGroups(), r, cells, cellsgs, wlen = ws.length;
            s.firstChild.style.width = tw;
            cells = s.firstChild.rows[0].childNodes;
            for (var i = 0, len = gs.length; i < len; i++) {
                r = gs[i].childNodes[2];
                r.style.width = tw;
                r.firstChild.style.width = tw;
                cellsgs = r.firstChild.rows[0].childNodes;
            
                for (var j = 0; j < wlen; j++) {
                    cells[j].style.width = ws[j];
                    cellsgs[j].style.width = ws[j];
                }
            }
        },

Thread Participants: 132

  1. franklt69 (3 Posts)
  2. Condor (18 Posts)
  3. mapo (3 Posts)
  4. HarryC (1 Post)
  5. mystix (139 Posts)
  6. jared (1 Post)
  7. MaxT (1 Post)
  8. wayne_o (2 Posts)
  9. soreport (1 Post)
  10. violinista (1 Post)
  11. bloon (1 Post)
  12. Troy Wolf (1 Post)
  13. tobiu (1 Post)
  14. Deleter (3 Posts)
  15. sintax.era (2 Posts)
  16. chernomorez (1 Post)
  17. lychorojostone (2 Posts)
  18. 6epcepk (6 Posts)
  19. zaunaf (1 Post)
  20. SlashEMc2k (1 Post)
  21. americos (1 Post)
  22. Layne (1 Post)
  23. jamie.nicholson (1 Post)
  24. mscdex (1 Post)
  25. vnug (2 Posts)
  26. dima (3 Posts)
  27. froamer (3 Posts)
  28. mondomon (3 Posts)
  29. kenshin (1 Post)
  30. rtconner (2 Posts)
  31. juljupy (6 Posts)
  32. lukas.wappler (4 Posts)
  33. crpatrick (1 Post)
  34. saJoshua (7 Posts)
  35. crxtech (1 Post)
  36. vertigoMX (5 Posts)
  37. sayanb (3 Posts)
  38. graveyardfashions (2 Posts)
  39. mwh154 (1 Post)
  40. calavera (2 Posts)
  41. JasonOng (1 Post)
  42. httpdotcom (5 Posts)
  43. kimosabi (2 Posts)
  44. uygarpe (1 Post)
  45. csextjs (2 Posts)
  46. Richie1985 (7 Posts)
  47. eliezerreis (5 Posts)
  48. dado.cubo (1 Post)
  49. Rafael (16 Posts)
  50. chrissturm (2 Posts)
  51. thomasf (1 Post)
  52. Rainher (1 Post)
  53. timotti (2 Posts)
  54. hongfu (1 Post)
  55. rnfbr1 (2 Posts)
  56. issameddine (2 Posts)
  57. rums (4 Posts)
  58. nuser (6 Posts)
  59. mntek (2 Posts)
  60. MichaelOstrovsky (1 Post)
  61. anghuda (1 Post)
  62. longfeisoft (2 Posts)
  63. nameroc (1 Post)
  64. georgeblackjr (1 Post)
  65. vinnybozz (2 Posts)
  66. mcouillard (2 Posts)
  67. wwwtd (5 Posts)
  68. s4brown (2 Posts)
  69. Shmitt (12 Posts)
  70. CEBEP (1 Post)
  71. charleshimmer (7 Posts)
  72. ondra.cz (1 Post)
  73. Eisstern (3 Posts)
  74. rasto1968 (2 Posts)
  75. hpandey (1 Post)
  76. xpete (1 Post)
  77. pratapbm (1 Post)
  78. leonardb (2 Posts)
  79. Trinad (2 Posts)
  80. larkworm (1 Post)
  81. bobjbain (1 Post)
  82. NetFantom (1 Post)
  83. amini (2 Posts)
  84. quen567 (2 Posts)
  85. pieter333 (1 Post)
  86. creepi (1 Post)
  87. ekhanh101 (4 Posts)
  88. alexbanda1982 (1 Post)
  89. damon1977 (1 Post)
  90. pablosn (2 Posts)
  91. cnesbit (1 Post)
  92. uniring (2 Posts)
  93. Jim.Barrows (1 Post)
  94. y_joren3 (2 Posts)
  95. ranadheersingh (2 Posts)
  96. quicksilver_in (2 Posts)
  97. Bleak (1 Post)
  98. janasri (1 Post)
  99. agfk (4 Posts)
  100. mcaudle28 (3 Posts)
  101. msinn (2 Posts)
  102. madirishman (2 Posts)
  103. blackghost (6 Posts)
  104. zvds (1 Post)
  105. sonixbp (5 Posts)
  106. tripEXITo (1 Post)
  107. erikenge (1 Post)
  108. sideview1 (1 Post)
  109. kuthz (1 Post)
  110. AfzalA (1 Post)
  111. pomuchi (1 Post)
  112. DerSalz (2 Posts)
  113. brycekmartin (2 Posts)
  114. malkandari (1 Post)
  115. eurobax (3 Posts)
  116. Fallen Zen (6 Posts)
  117. mayurid (1 Post)
  118. rOCTb (1 Post)
  119. t2nguyen (1 Post)
  120. Manivel (10 Posts)
  121. wigwam_salesman (13 Posts)
  122. ExTriqui (4 Posts)
  123. Tod (2 Posts)
  124. PavelG (1 Post)
  125. joelchu (1 Post)
  126. optiplex (1 Post)
  127. grace.lawrence (1 Post)
  128. bhuskey (2 Posts)
  129. jimprotos (1 Post)
  130. anuruddha84 (1 Post)
  131. Mcaveti (1 Post)
  132. arunmatics (1 Post)