Flexgrid paging

Posted by: peter on 28 February 2023, 9:33 am EST

    • Post Options:
    • Link

    Posted 28 February 2023, 9:33 am EST

    Flexgrid for MAUI page mentions a Paging function.

    https://www.grapecity.com/componentone/maui-ui-controls/flexgrid-maui-datagrid

    I can’t find it in the demo, nor is it in the documentation.

    Do you have any more info on that?

    Thanks

  • Posted 2 March 2023, 9:12 pm EST

    Hello,

    Apologies for the delay in response.

    We are looking into this and will get back to you with the updates soon.

    Regards,

    Prabhat Sharma.

  • Posted 5 March 2023, 10:46 pm EST

    Hi Peter,

    Apologize for the inconvenience.

    We are discussing this requirement with the concerned team. Will get back to you once we have any update from them.[Internal Tracking Id - C1XAML-31408]

    Best Regards,

    Nitin

  • Posted 13 March 2023, 12:06 am EST

    Hi,

    Apologize for the delay.

    JFYI, The support for paging is already there in FlexGrid but there is no DataPager control in Maui yet,

    A simple implementation with 2 prev and next buttons would be something like this

    _pagedDataCollection = new C1PagedDataCollection<Customer>(Customer.GetCustomerList(100)) { PageSize = 10 };
    grid.ItemsSource = _pagedDataCollection;

    And then change the page as the Prev and Next buttons are clicked

    private void OnPrevClicked(object sender, EventArgs e)
    {
        if (_pagedDataCollection.CurrentPage > 0)
            _pagedDataCollection.MoveToPageAsync(_pagedDataCollection.CurrentPage - 1);
    }
    
    private void OnNextClicked(object sender, EventArgs e)
    {
        if (_pagedDataCollection.CurrentPage < _pagedDataCollection.PagesCount - 1)
            _pagedDataCollection.MoveToPageAsync(_pagedDataCollection.CurrentPage + 1);
    }

    I hope it helps.

    Please refer the attached sample for the same: FlexGridMauiPaging.zip

    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