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. #61
    Ext User
    Join Date
    Aug 2007
    Posts
    10
    Vote Rating
    0
    vnug is on a distinguished road

      0  

    Default


    Thanks, Mystix for the response. Follow-up questions - was anyone successful in porting this to 1.1? Or, any similar plug-in available for 1.1? Any and all information is appreciated.

    best regards,

  2. #62
    Ext User
    Join Date
    Oct 2007
    Posts
    63
    Vote Rating
    0
    rtconner is on a distinguished road

      0  

    Default


    For those of you trying to get this (Mystix version) to work with group summary...

    I don't know how fast or efficient this is, but it works. This easy 3 step proccess with get you there

    1. Replace this..
    Code:
    this.view.afterMethod('syncScroll', this.syncSummaryScroll, this);
    this.view.afterMethod('onColumnWidthUpdated', this.doWidth, this);
    this.view.afterMethod('onAllColumnWidthsUpdated', this.doAllWidths, this);
    this.view.afterMethod('onColumnHiddenUpdated', this.doHidden, this);
    with..

    Code:
    v.on('layout', this.setupUpdates, this);
    2. then add fireEvent to onLayout...

    Code:
      onLayout : function(vw, vh) {
        this.fireEvent('layout');
        // note: this method is scoped to the GridView
        if (!this.grid.getGridEl().hasClass('x-grid-hide-gridsummary')) {
          // readjust gridview's height only if grid summary row is visible
          this.scroller.setHeight(vh - this.summary.getHeight());
        }
      },
    3. then add this method in to finish things up.

    Code:
      setupUpdates : function() {
        this.refreshSummary();
        this.view.afterMethod('syncScroll', this.syncSummaryScroll, this);
        this.view.afterMethod('onColumnWidthUpdated', this.doWidth, this);
        this.view.afterMethod('onAllColumnWidthsUpdated', this.doAllWidths, this);
        this.view.afterMethod('onColumnHiddenUpdated', this.doHidden, this);
      },

  3. #63
    Ext User
    Join Date
    Oct 2007
    Posts
    63
    Vote Rating
    0
    rtconner is on a distinguished road

      0  

    Default


    Oh and I was having a problem where I was getting NaN if there were no records. Just changed the calculate method to what is below to fix it.

    Code:
      calculate : function(rs, cs) {
        var data = {}, r, c, cfg = this.cm.config, cf;
        for (var i = 0, len = cs.length; i < len; i++) {
          c = cs[i];
          cf = cfg[i];
          data[c.name] = 0;
          for (var j = 0, jlen = rs.length; j < jlen; j++) {
            r = rs[j];
            if (cf && cf.summaryType) {
              data[c.name] = Ext.grid.GridSummary.Calculations[cf.summaryType](data[c.name] || 0, r, c.name, data);
            }
          }
        }
    
        return data;
      },

  4. #64
    Sencha User
    Join Date
    Jan 2008
    Posts
    193
    Vote Rating
    0
    Richie1985 is on a distinguished road

      0  

    Default


    i use the sum row in a editor grid. the problem is, when i type something in a cell and then i go to the next cell with tab, or enter key, then the cell has no focus, without this plugin dos it function. how can fix it? but this os only in internet explorer, not in firefox

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

      0  

    Default


    Quote Originally Posted by Richie1985 View Post
    i use the sum row in a editor grid. the problem is, when i type something in a cell and then i go to the next cell with tab, or enter key, then the cell has no focus, without this plugin dos it function. how can fix it? but this os only in internet explorer, not in firefox
    huh???

  6. #66
    Sencha User
    Join Date
    Jan 2008
    Posts
    193
    Vote Rating
    0
    Richie1985 is on a distinguished road

      0  

    Default


    sorry, i come from germany and my english is very baaaaaaaaaaaadl.

    i try to describe it better:

    i use this Grid Summary Plugin in a Editor Grid.
    Normaly i can click in a cell and write mit value. then i press the "enter" key and the cursur jump to the next cell. this runs without the plugin in alle browser (ie7, ie6, and firefox).

    but with the plugin, in ie6 the grid lost the focus when i leave the cell.

    did you understand me?

    thanks

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

      0  

    Default


    @Richie1985, no worries. i don't speak a word of german

    post your grid code, or a screencast (use Jing or something similar) and me / someone will take a look at it.
    unfortunately, i don't have IE6 on hand, only IE7, so i'll have to start by inspecting your grid code.

    [edit]
    get the latest GridSummary update from my initial post.
    i've updated the code to include fixes posted by various users.

  8. #68
    Ext User
    Join Date
    Nov 2007
    Location
    Chicago, IL
    Posts
    216
    Vote Rating
    0
    crpatrick is on a distinguished road

      0  

    Default


    Please disreguard the below. I created only one instance of the summary plugin, and used on both grids. Wouldn't you know I saw that the minute I posted.

    Thanks again for the plugin!

    ___________________________________________ Disreguard below this line....

    Hi there-

    First...great plugin!

    I am seeing something a little weird with multiple grids on a page. I have a border layout, and the first grid with summary row renders in the center region. Once rendered, the user can resize/scroll, and the summary row resizes/scrolls as expected. When the user clicks on a row item, a second grid is built within the southern region, with another summary panel. The thing I am seeing though is that if a user resizes/scrolls the columns of the first grid, it resizes/scrolls the summary row columns of the second. Is there something that anyone can think of that may be tying the summary row of the second grid to the first/second displayed grids?

    Thanks for any help.
    Chris

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

      0  

    Default


    @crpatrick, you do know there's a strikethrough tag right?

    doing
    Code:
    [s]cows are cute[/s]
    would give you
    Code:
    cows are cute
    enjoy

  10. #70
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    nuser is on a distinguished road

      0  

    Default How to get summary

    How to get summary


    Quote Originally Posted by mystix View Post
    as @SaJoshua has mentioned, you may manipulate the 'sum' value (or 'count' / 'max' / 'min' / 'average' values) via a custom summaryRenderer.

    add the following function to the included example
    Code:
    function squareIt(v, params, data) {
      return v? (Math.pow(v * 1000, 2) / Math.pow(1000, 2)) : '';
    }
    and add the following summaryRenderer to the column with the sum
    Code:
    {header: "Price", width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price', summaryType: 'sum', editor: new Ext.form.NumberField({allowDecimals: true}), summaryRenderer: squareIt},
    the summaryRenderer method is always passed 3 params:
    • v - the value computed by the column's respective summaryType function
    • params - the cell params css, id, style and value
    • data - computed data for all cells in the summary row
    I need the sum value of two columns to derive the average value for a third column e.g. average price = sum cost / sum qty.

    I've been trying to figure out how to use the summaryRenderer to achieve this without success. Appreciate if someone could shed some light on how this could be done.

    Tks & Best Rgds

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)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar