LoadOnDemand - disable button

2 posts, 0 answers
  1. Andrea
    Andrea avatar
    1 posts
    Member since:
    Nov 2018

    Posted 19 Nov 2018 Link to this post


    I have a DataGrid that load items using the LoadOnDemand manual approach. When there aren't any items to add how can I hide/disable the "Load more" button.

    Best regards



  2. Yana
    Yana avatar
    5037 posts

    Posted 20 Nov 2018 Link to this post

    Hi Andrea,

    Thank you for your interest in Telerik UI for Xamarin controls.

    You would need to switch to Automatic LoadOnDemand mode when there are any more items to load.  This could be achieved by binding LoadOnDemandMode to a property in the ViewModel and update it through a LoadMoreData Command.  In the Command you would need to implement some logic to check whether there are more items to load.  I have attached a sample example to demonstrate how exactly this would work. Please download the attachment and give it a try.

    Let me know if you have any additional questions or concerns.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top