This is a migrated thread and some comments may be shown as answers.

Disable scroll of listview

6 Answers 691 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Vipul
Top achievements
Rank 1
Vipul asked on 01 Mar 2016, 12:10 PM

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.

6 Answers, 1 is accepted

Sort by
0
Vipul
Top achievements
Rank 1
answered on 01 Mar 2016, 12:13 PM

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.

0
Tsvyatko
Telerik team
answered on 04 Mar 2016, 11:24 AM
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
0
Vipul
Top achievements
Rank 1
answered on 04 Mar 2016, 11:30 AM

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. 

 

0
Tsvyatko
Telerik team
answered on 08 Mar 2016, 01:26 PM
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
0
Vipul
Top achievements
Rank 1
answered on 08 Mar 2016, 07:49 PM

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. :)

0
Tsvyatko
Telerik team
answered on 12 Mar 2016, 05:16 PM
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
Tags
ListView
Asked by
Vipul
Top achievements
Rank 1
Answers by
Vipul
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or