Disable scroll of listview

7 posts, 0 answers
  1. Vipul
    Vipul avatar
    6 posts
    Member since:
    Feb 2016

    Posted 01 Mar Link to this post

    I am using the telerik listview in our project(Xamarin.forms). I have a scenario where i want to disable the scrolling of telerik listview. I have xamarin scroll view inside that i have telerik listview also some other controls. I want the full page scroll able. But due to telerik internal scrolling the full page does not become scroll able. Could you please help with this.

     

    Thanks In Advance.

  2. Vipul
    Vipul avatar
    6 posts
    Member since:
    Feb 2016

    Posted 01 Mar in reply to Vipul Link to this post

    Updating the above question:-

    I am using the telerik listview in our project(Xamarin.forms). I have a scenario where i want to disable the scrolling of telerik listview. I have xamarin scroll view. Inside xamarin scroll view, i have telerik listview also some other controls. I want the full page scroll able. But due to telerik internal scrolling the full page does not become scroll able. Could you please help with this.

    Thanks In Advance.

  3. DevCraft banner
  4. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 04 Mar Link to this post

    Hi Vipul,

    Thank you for contacting us! Based on the described scenario I assume the behavior described is reproducible on Android device.

    Currently this is a know issue in Listview that prevents from rendering its entire content and restricts the scrollbar. We are working on resolving it in one of our next official releases.

    At the moment, I can suggest to set explicitly HeightRequest to the desired height based on the number of items, forcing the Listview to render its entire contents.



    Regards,
    Tsvyatko
    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
  5. Vipul
    Vipul avatar
    6 posts
    Member since:
    Feb 2016

    Posted 04 Mar Link to this post

    Hi Tsvyatko,

    Thanks for the reply :)

    I do not want to set the Height Request explicitly. Because there are some of the controls which should come after telerik listview. If i give explicit height after doing the scrolling user will be able to see those controls. Please provide any work-around for the same if you think there is any other than setting height request explicitly. 

     

  6. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 08 Mar Link to this post

    Hello Vipul,

    Could you elaborate a bit more on the desired result you are looking for. If the listview stretches its contents the user will be able to scroll the parent scrollviewer and eventually will scroll to and display the controls positioned below the listview (or any other control).

    Regards,
    Tsvyatko
    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
  7. Vipul
    Vipul avatar
    6 posts
    Member since:
    Feb 2016

    Posted 08 Mar Link to this post

    Hi,

    If the items get over flow in the telerik listview it will start scrolling of itself. Due to this parent level content does not get over flown which does not enable the scrolling at the page level. Telerik listview start its scrolling when there more items. So to over come this i want to disable the scrolling of the telerik listview(which is the default behavior). If that gets stopped the content of the page will be over flown which enables the scrolling at the page level

    Did you get the scenario what i want to achieve?

    Thanks In Advance. :)

  8. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 12 Mar Link to this post

    Hi Vipol,

    Thank you for clarifying the desired result! Unfortunately, the observed behavior is a result from a restriction the Android API 21 (the one currently supported by Xamarin Forms) and we expect Google to address it in Android API 23.0.1. Once Xamarin Forms officially support this version the desired behavior will become default one when nesting listview in Stack/Scrollable container.

    What I can suggest is a workaround (I am assuming you are using Linear/Stack layout). I have prepared sample project demonstrating how to overcome this restriction with custom listview renderer and custom LayoutManager in Andorid. Also, note that this solution will not be able to compile with our current version as it requires additional extension points. We will add the additional API in our next release scheduled for the next week.

    Regards,
    Tsvyatko
    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
DevCraft banner