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

How Do I Implement ListView HeaderTemplate?

2 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hale
Top achievements
Rank 1
Hale asked on 04 Mar 2018, 05:10 AM
Hi all,
It's a popular topic how in Xamarin Forms we need to avoid listview in a scroll view. It's often required to stack something above a listview and scroll all together. Xamarin's solution for this is to come up with the Header and Footer template so that you don't have to place your ListView within a scrollview.
I don't think there's HeaderTeamplate in Telerik Xamarin Forms Listview nor I couldn't figure out a workaround.
If it's not available in the XF layer, then I wouldn't mind doing a custom renderer to insert a header view within the Telerik ListView.
Anyone could guide me how I could achieve this?

Thanks heaps!

Regards,

Sheny

2 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 07 Mar 2018, 02:48 PM
Hello, Hale,

We have a feature request logged to implement such functionalities. You can vote for it and track it on the following link from our Ideas & Feedback portal - ListView: Add support for header and footer. Please follow it so that you are automatically notified when there is an update available.

In the meantime, you can consider placing the RadListView within a Grid control. Eventually, you can add a Label or an element of your choice as well which can be placed on top of the RadListView and this should mimic the behavior you are looking for.

Have a great rest of the 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
0
Hale
Top achievements
Rank 1
answered on 20 Mar 2018, 01:13 PM
Thanks Stefan Nenchev :D
Tags
General Discussions
Asked by
Hale
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Hale
Top achievements
Rank 1
Share this question
or