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

Last Cell of ListView Cutoff?

3 Answers 541 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 04 Aug 2017, 06:55 PM

I have this Xaml definition here and no matter how much padding to the bottom I put, the ListView doesn't move up. Half of the last cell in the ListView is cutoff, and I am not sure why. I tried this exact Xaml definition, but just swapped the RadListView out for a native ListView, and the problem was resolved. Why is this?? This is what I am seeing.

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 09 Aug 2017, 10:12 AM
Hello Trevor,

As the number of items you have within the ListView exceeds the available space of the control, it would be expected that the last item is not fully shown and you need to scroll in order to fully expose it and all other items beneath it. If you would like to initially show a specific view and not cut an item, you can consider adding a specific Height to the ListView cell or change the height of the ListView itself so that it exactly fits a number of items. 

As I might be missing something, can you share a screenshot of how the native control behaves in your exact setup? Actually, providing a sample application will be appreciated.

Regards,
Stefan Nenchev
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
0
Trevor
Top achievements
Rank 1
answered on 09 Aug 2017, 01:38 PM
In my screenshot, the list is scrolled all the way down, and if you force scroll it a little further, you can see the whole thing. This is definitely an issue with RadListView, because if I change out my exact code, with a native ListView, it works perfectly fine. I shouldnt have to specify an exact height of a ListView. A screenshot of the native implementation can be found here.
0
Stefan Nenchev
Telerik team
answered on 14 Aug 2017, 09:53 AM
Hello Trevor,

It seems to me that the issue is caused by the overall structure at your end and how the parent elements are arranged. Putting the RadListView within a Grid element instead of a ContentView does not cause the last item to be cut off. Please have a look at the attached sample. Would replacing the elements work for you?

Have a great week.

Regards,
Stefan Nenchev
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
Tags
ListView
Asked by
Trevor
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or