Is there is a way to switch between the ListViewLinearLayout to ListViewGridLayout in Xamarin.Forms ListView?

4 posts, 1 answers
  1. Marginpoint
    Marginpoint avatar
    2 posts
    Member since:
    Jul 2019

    Posted 19 Nov 2019 Link to this post

    Hello Team,

    We have a requirement where we need to switch between the ListViewLinearLayout to ListViewGridLayout using Telerik RadListView. Is there is any way/option available in Telerik RadListview to do such things. Please suggest.

    Thanks & Regards,

    Amit Kumar

  2. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 19 Nov 2019 Link to this post

    Hello Amit,

    RadListView provides both linear and grid layouts, you could check more about them in the following documentation article: ListView Layouts.

    You've mentioned you'd need to switch between the layouts, could you elaborate a little bit more on this?

    Regards,
    Yana
    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
  3. Marginpoint
    Marginpoint avatar
    2 posts
    Member since:
    Jul 2019

    Posted 19 Nov 2019 Link to this post

    Hello Yana,

    Thank you for your response. Actually i have a UI where user can toggle the List to Grid or Grid to List. So, i want to know is there is way that i can do the same with RadListview as it support both the layout. I want when user click on List button then user can see the UI in List mode and if user click Grid button then user can see the UI in Grid (or Tile) Mode.

    Regards,

    Amit Kumar

  4. Answer
    Yana
    Admin
    Yana avatar
    5013 posts

    Posted 20 Nov 2019 Link to this post

    Hello Amit,

    Yes, it is possible - we have it implemented in our RadListView Layouts QSF example.  You can find the QSF application either in your Telerik UI for Xamarin installation folder under QSF folder or you can directly explore the code in the QSF Examples repository on GitHub

    The concrete example I am referring it to is the Layouts Example - in short, the layouts are switched through a DataTrigger added to the ListView definition.

    I hope I was of help. Let me know if I can assist with anything else.

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