Load on Demand and Load Indicator on Code-Behind

2 posts, 0 answers
  1. Breno
    Breno avatar
    2 posts
    Member since:
    Dec 2016

    Posted 10 Apr 2017 Link to this post

    Hi everyone!


    Please, can you show me an example of the working of Load on Demand and Loading Indicator, but only in code-behind?


    I'm can't do these working on my project.


    Much thanks if anyone help me!

  2. Lance | Manager Technical Support
    Lance | Manager Technical Support avatar
    1193 posts

    Posted 12 Apr 2017 Link to this post

    Hello Breno,

    The properties are the same whether you use it in XAML or in C# (see here for the feature details).

    Here's what it looks like in C#:

    //Your RadListView reference (maybe a class field)
    private RadListView myRadListView;
    // pull to refresh setup (can be in the page constructor)
    myRadListView.IsPullToRefreshEnabled = True;
    myRadListView.RefreshRequested += RefreshRequested;
    // the event handler
    private async void RefreshRequested(object sender, PullToRefreshRequestedEventArgs e)
        // Do Work
        // hide indicator

    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    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