Articles in this section
Category / Section

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

1 min read

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.

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment