OK to use DataSource in Xamarin.Forms Project with Listview?

2 posts, 0 answers
  1. Riaz
    Riaz avatar
    7 posts
    Member since:
    Apr 2017

    Posted 22 Apr Link to this post

    I intend to use a "ListView" control with the "DataSource" control in a Xamarin.Forms project to save time with loading/sorting, and this comment on you site (http://www.telerik.com/xamarin-ui/listview) seems to say that's supported/possible:

    "To simplify the data consumption and data shaping, the ListView for Xamarin.Forms is integrated internally with Telerik DataSource for iOS and Android. The DataSource control serves as an intermediary between the raw data to be displayed and the UI component."

     

    But on the bottom of this page (http://www.telerik.com/xamarin-ui/datasource) the table says that you *can't* use a DataSource in a Xamarin.Forms project 

    Which one is correct? Or am I misunderstanding something?

     

    Thanks

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    457 posts

    Posted 24 Apr Link to this post

    Hi Riaz,

    The RadListView is already using the DataSource component internally, adding a 2nd one is not supported.

    You can see the data operations you want under the "Features" section in the RadListView documentation:




    Those are the operations from the internal DataSource component, surfaced through the RadListView API.

    Also to be clear, the DataSource component is not available in Xamarin Forms because it's already integrated into the controls. The only time the DataForm is available is if you were building Xamarin.Android or Xamairn.IOS specific projects.

    You can see all the UI for Xamarin Cross Platform components here, under the Controls folder.

    Regards,
    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