We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add pull-to-refresh support in SfListView when SearchBar is placed on top of SfListView?

Platform: Xamarin.Forms |
Control: SfPullToRefresh

When SearchBar or any view placed above the SfPullToRefresh control, then pulling action doesn’t work on SfListView because touches directly passed to SfListView instead of SfPullToRefresh control.

Hence you can overcome this problem by placing the SfListView inside the Grid and place that Grid as PullableContent of SfPullToRefresh as like below code example.


        <Grid RowSpacing="0" ColumnSpacing="0" Padding="0" Margin="0">
                <RowDefinition Height="50" />
                <RowDefinition Height="*" />
                <local:SfListViewPullToRefreshBehavior />
            <SearchBar x:Name="filterText" Placeholder="Search" FontSize="14" />
            <pulltoRefresh:SfPullToRefresh x:Name="pullToRefresh" Grid.Row="1"
                                           ProgressBackgroundColor="#428BCA" RefreshContentHeight="50" 
                                           RefreshContentWidth="50" TransitionMode="Push" IsRefreshing="False">
                        <syncfusion:SfListView x:Name="listView" AllowSwiping="True"



 Graphical user interface, text

Description automatically generated


Click here to download the sample.

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile