Pull to refresh Maui Flexgrid

Posted by: l.balazs on 9 February 2023, 6:22 am EST

  • Posted 9 February 2023, 6:22 am EST

    After loading and grouping 200 simple items to FlexGrid the collapsing and expanding groups takes more than 4 seconds in debug mode using Emulator. Release mode is not much faster.

    So I decided to load say 25 items at a time and when user scrolls to th end if the list I load the next 25 items.

    I found the “On demand” example in FlexGridExplorer sample app, but with 30++ years practice I could not follow your programmers. The app is almost uncommented.

    Can somebody explain:

    1. How to enable the Pool to Refresh mode in Maui FlexGrid?
    2. How to implement loading more items to Maui GlexGrid when user fires the event which happens when the user reaches th first or last element during scrolling.

      Note: The “Documentation” mentions the “Virtual Mode” in Features, but it unfortunately does not explain how to do that.

      Thanks,

      Louis
  • Posted 9 February 2023, 10:37 pm EST

    Hi,

    1. To achieve this requirement, you can set AllowRefreshing property of FlexGrid to True

    2. Could you please provide some more details? As we are unclear about your requirement. You can refer “On Demand” sample for the same. If you have any issues while implementing, then please ask here.

    Regards,

    Nitin

  • Posted 14 February 2023, 4:39 am EST

    Hi Nitin,

    Thanks,

    Setting AllowResfreshing = true and using the C1 OnDemand example solved my problem, but it is not clear how it works. There is a C1CursorDataCollection class which probably does the magic behind the curtain, but it is not documented nor explained.

    Also, pull to refresh function works but it does not show the ActivityIndicator while it is refreshing…

    Best regards

    Louis

  • Posted 15 February 2023, 11:24 pm EST

    Hi,

    Apologize for the delay.

    We are discussing this with the development team. Will get back to you once we have any updates.[Internal Tracking Id - C1XAML-31208]

    Regards,

    Nitin

Need extra support?

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

Learn More

Forum Channels