FlexGrid refresh

Posted by: info on 14 May 2022, 7:35 pm EST

  • Posted 14 May 2022, 7:35 pm EST

    Hello.

    How to refresh the FlexGrid's View?
    Does the Refresh Method works?

    In this xaml, FlexGrid refresh works.

    <Window>
    <Grid>
    <c1:FlexGrid></c1:FlexGrid>
    </Grid>
    </Window>


    But in my project, FlexGrid refresh doesn't work in XAML like:

    <TabItem>
    <c1:FlexGrid>
    </c1:FlexGrid>
    </TabItem>


    (I use the Entity Framework. When an entity reloaded , I want the FlexGrid View to be updated.)

    If the refresh method should be works in this XAML, I'll create a minimal project for validation.

    C1.WPF.Grid.Ja 6.0.20221.218
  • Replied 15 May 2022, 4:00 pm EST

    Hi,

    Thank you for sharing the code snippet.

    Yes you are right FlexGrid's Refresh method needs to be used in order to refresh the view. However, we couldn't replicate this behavior at our end in both scenarios. (see FlexGridRefresh.zip)

    So, could you please share a small sample replicating this behavior?

    Best Regards,
    Kartik

    FlexGridRefresh.zip
  • Replied 16 May 2022, 9:53 am EST

    Thank you for your reply.

    I have created a sample.

    I found the following.
    • TabItem is irrelevant.

    • Behavior is different between 1 row and 2 rows

    • Behavior is different depending on whether to sort or not


    The following code seems to be the cause.
    <c1:GridColumn.CellTemplate>
    <DataTemplate>
    <TextBlock VerticalAlignment="Center" Text="{Binding Path=Text1}" />
    </DataTemplate>
    </c1:GridColumn.CellTemplate>


    202205FlexGridStudy.zip
  • Replied 16 May 2022, 8:57 pm EST

    Hi,

    Thanks for the sample and snapshot reference.

    We have replicated this behavior at our end. CellTemplate is not updating properly after invoking Refresh() method. This seems like a bug. So, that we have escalated this behavior to the development team.
    We will get back to you once we have any update from them. [Internal Track Id - C1XAML-29456]

    Best Regards,
    Nitin
  • Replied 16 May 2022, 9:17 pm EST

    Thank you!
    I will wait for the fix.
  • Replied 4 August 2022, 2:06 am EST

    Hi,

    We are happy to inform you that, this issue is fixed in 2022v2 release.
    Please download the latest ComponentOne Control Panel from https://www.grapecity.com/componentone/download and install the latest 2022v2 build.

    Best Regards,
    Nitin.
Need extra support?

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

Learn More

Forum Channels