Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Extended ListGrid Summary Section

    I see a need for an extended ListGrid Summary section (currently one row).

    In my commercial context there must be at least three rows:

    (1) the sum as created today, aka 'Total without VAT'
    (2) the VAT itself, e.g. 19 % standard VAT in Germany
    (3) the total Total as sum of (1) and (2)

    I believe that three rows (instead of one, right now) are not even sufficient at the long-term, as there're applications with different VATs, costs for P&P, etc.

    So what I'm saying is, we need a user-customized Summary section, that is geometrically managed by SC, and can have an arbitrary number of rows.

    I don't think that SC should care about the relative (VAT) or absolute (P&P) character of the add'l rows. Instead this should be done by the user. All we need are some usual triggers to update the Summary Section after any changes in the regular fields.

    Ekki

    * GWT Rocks! * SmartGWT Rocks Even Harder! *

    SmartGWT PRO/EE 1.2.1, SmartGWT 1.3, GWT 1.7.1, Eclipse 3.5.1, JRE 1.6.0_16

    CI-CUBE.BIZ feat. CubeBrowser.AppSpot.com www.EasternGraphics.com/X-4GPL

  • #2
    The best way to do this is probably to add a second grid of your own, in a VStack with the main grid, where the second grid is autoFitData:vertical and contains summary rows that you generate by hand. Use fieldStateChanged events on the first grid to apply the fieldState to the second grid to keep column widths, visible fields, etc in sync.

    Comment


    • #3
      Thx. That option was already in my mind!

      Ekki

      * GWT Rocks! * SmartGWT Rocks Even Harder! *

      SmartGWT PRO/EE 1.2.1, SmartGWT 1.3, GWT 1.7.1, Eclipse 3.5.1, JRE 1.6.0_16

      CI-CUBE.BIZ feat. CubeBrowser.AppSpot.com www.EasternGraphics.com/X-4GPL

      Comment

      Working...
      X