C1FlexGrid.Footers and Tree

Posted by: wknauf on 12 August 2019, 3:34 am EST

  • Posted 12 August 2019, 3:34 am EST - Updated 13 August 2025, 11:03 am EST

    Hi C1,

    just tested the new “Footers” property - this is a really great idea.

    But it seems there are some problems with trees. See attached sampled, based on the “TreeNode” sample:

    TreeNode.zip

    a) when the tree style is “Simple” (default in the sample), the footer row has the same identation level as the row above.



    b) we use a tree style “Lines|Symbols|Leaf”, and here the footer row is linked to the previous grid row:



    c) (not tree releated, but a general problem) the footer row has no top border. Is this the intended behavior? I would expect it to behave the same way as the grid header row.

    I don’t know why my sample does not display a “Count”, but as I have custom sums in our “real” grid (by assigning the sum value ToString() to “AggregateDefinition.Caption”), I did not dig deeper into this.

    Best regards

    Wolfgang

  • Posted 13 August 2019, 7:20 am EST

    Hello Wolfgang,

    First of thank you for the sample and the information.

    a) This is the designed behavior because it will calculate the aggregate for all the rows at level as the row above.

    b) I too can replicate the behavior at my end, thus posting a bug draft for this to the developers. We will let you know once there is any response on this from the developers.[Internal Tracking ID : 394016]

    c) By default Footer Border style is Flat and Headers have the same Border Style. If you set the BorderStyle of the FlexGrid to None, you can observe that Header also don’t have top border by default. So you need to set the Border Style for the Footer accordingly to show the Top Border.

    d) In the attached sample, each row is set as node row and FlexGrid Footer aggregates do not cover Node rows that is why you are getting 0 as count.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 14 August 2019, 3:01 am EST

    Hi Prabhat,

    thanks for the reply.

    a) is there any chance to not indent the footer row or at least show it a the identing level of the root nodes?

    As it is the grid footer, I expect the aggregates to be “overall” aggregates, no aggregates at the level of the previous child.

    c) I know that the grid styles only define the right/bottom borders. But the PageFooter feature seems to be special - I expect it to also contain a top border or at least a line above the row, using the border color. If the grid lines change color from “normal” to “fixed” without a border, this does not look nice to my opinion ;-). Could you talk to the developers about this?

    Best regards

    Wolfgang

  • Posted 14 August 2019, 5:20 am EST

    Hello Wolfgang,

    Thank you for the information.

    We have escalated both the issues to the developers.

    We will let you know once there is any response on this from the developers.

    Internal Tracking IDs :

    a) 394124

    c) 394119

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 5 July 2020, 1:51 pm EST

    Hello Wolfgang,

    There is an update regarding the Indentation level of Footer Rows when using Tree like structure in FlexGrid:

    This issue has been fixed in the latest hotfix builds i.e. 4.5.2.20201.424 and you can use the builds in your application to resolve the problem that you are getting at your end.

    You can upgrade the builds via latest ComponentOneControlPanel utility by following below given steps:

    1: Run the utility.

    2: Go to the UPDATE tab under the PRODUCTS tab.

    3: Check the option: Include prerelease and hotfix versions.

    4: Expand WinForms and click the update button.

    Regards,

    Prabhat Sharma.

  • Posted 10 July 2020, 2:57 am EST

    Great, thanks!

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels