WPF .Net5/.Net6 FlexGrid AlternatingRowBackground Issue

Posted by: rdbrownii on 4 January 2022, 7:40 am EST

  • Posted 4 January 2022, 7:40 am EST

    I've noticed an issue when using AlternatingRowBackground in a grid that has Row Details (e.g. FlexGridDetailProvider). When I open and close details, the grid loses track of the correct background color to use. You can replicate this with the FlexGridExplorer sample project. Modify the RowDetails.xaml source file and add AlternatingRowBackground property to the main c1:FlexGrid element (line 21). Run the project and open/close the details of the first 6-10 rows in order then randomly open/close details of the rows in that group. As you do this you will start to see the control "lose its place" so that primary rows are no longer properly alternating in color.
  • Replied 5 January 2022, 5:52 pm EST

    Hi,

    We have replicated this behavior at our end and this seems like a bug. So, we have escalated it to the development team. We will get back to you once we have any update from them. [Internal track Id-C1XAML-28587]

    Regards,
    Nitin
  • Replied 6 January 2022, 10:47 pm EST

    Thank you.
  • Marked as Answer

    Replied 27 January 2022, 9:00 pm EST

    Hi,

    Thanks for your patience.

    When an item is inserted/removed/collapsed/expanded an animation is performed. to perform the animation. It is necessary to update the layout, and this causes a strange effect with alternating rows.
    This is a limitation in FlexGrid, AlternatingRowBackground and UpdateAnimations are incompatible.

    So, we are sorry to inform you that this is the design behavior and Unfortunately there is no workaround available for it.

    Best Regards,
    Nitin
  • Replied 25 April 2022, 1:10 am EST

    Sorry for the long delay, I just saw this reply. Is it Grape City's position that two features of FlexGrid that conflict with each other is a designed behavior and not a problem that should be corrected? As a Grape City customer, this makes AlternatingRowBackground useless to me because enabling it in an application that requires the use of row details would create a substantial UX issue for my customers. I urge you to reconsider.
  • Replied 25 April 2022, 2:31 pm EST

    Hi,

    We apologize for any inconvenience caused to you.

    As per our understanding this seems like an issue. So, we are discussing with the concerned team and will get back to you as soon as there is any update regarding the same.

    Best Regards,
    Nitin
  • Replied 26 April 2022, 6:22 pm EST

    Hello,

    Could you please confirm that what behavior you want while using AlternatingRowBackground with DetailRow.
    1. All the rows of the same color when every detail is collapsed, and when open a detail it would look a different color, since the normal rows will be even and details odd.
    2. Alternating rows applied according to the visible rows. Behavior like Flexgrid 4.5.2 version:(see gif)



    Best Regards,
    Nitin
  • Replied 26 April 2022, 9:49 pm EST

    Hi Nitin,

    I would expect the behavior to be the same as FlexGrid 4.5.2 and DataGrid 4.5.2, as depicted in the GIF you attached.

    Thanks!
  • Replied 26 April 2022, 10:06 pm EST

    Hi,

    Thanks for your fast response. We are discussing with the devs. We will update you once we get any update.

    Regards,
    Nitin
Need extra support?

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

Learn More

Forum Channels