Column totals block customization issues

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Jun 14, 2010, 4:25:43 AM6/14/10
to In-Portal Bugs
Recently I was trying to create custom block to display totals under one of the columns in grid I was working on.

Here are several problems I'm came across trying to do that:
  • attempt to define block and give it's name in "total_block" in column definition failed (code doesn't even look there)
  • I somehow managed to get it working, but I asked me to place "'" (single quotes) around inside my block, plus placing "," after that all.
I've managed to fix that inconsistencies and here is the patch.

To Test:
  1. Add totals_render_as="grid_total_row" parameter to "grid" block rendering
  2. Add totals="SUM" on any reasonable field
  3. Add total_block="grid_custom_total_td" to that field definition in grid
Now you must see that custom block content as total under your column. If custom block isn't defined, then default block must be shown (verify that too).

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
grid_total_override_fix.patch

Alexander Obuhovich

unread,
Jun 14, 2010, 6:01:53 AM6/14/10
to In-Portal Bugs
Same override problem issue with column header block (that one with sorting arrow). Combined patch attached for both issues.
grid_block_override(totals_and_header)_fix.patch

Dmitry Andrejev

unread,
Jun 14, 2010, 3:03:25 PM6/14/10
to in-port...@googlegroups.com
Thanks Alex,

Would you please create a task for this Patches so they can properly tested.


DA.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Jun 25, 2010, 2:21:55 PM6/25/10
to in-port...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages