Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
# How to refresh listview after dropping a table in Xamarin.Forms?

This example demonstrate how to refresh listview after dropping a table in Xamarin.Forms ListView.

## Sample

```xaml
<syncfusion:SfListView x:Name="listView" ItemSize="60" FooterSize="50" ItemSpacing="5" ItemsSource="{Binding ContactsInfo}" IsStickyFooter="True" Grid.Row="1">
<syncfusion:SfListView.ItemTemplate >
<DataTemplate>
<Grid x:Name="grid">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="1"/>
</Grid.RowDefinitions>
<Grid RowSpacing="1" VerticalOptions="Center" Padding="10,0,0,0">
<Label LineBreakMode="NoWrap" TextColor="#474747" Text="{Binding ContactName}"/>
<Label Grid.Row="1" Grid.Column="0" TextColor="#474747" LineBreakMode="NoWrap" Text="{Binding ContactNumber}"/>
</Grid>
<BoxView BackgroundColor="LightBlue" Grid.Row="1"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
<syncfusion:SfListView.FooterTemplate>
<DataTemplate>
<Grid BackgroundColor="Transparent">
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Path=BindingContext.DropTableCommand, Source={x:Reference listView}}"/>
</Grid.GestureRecognizers>
<Label Text="Drop table" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" FontSize="Subtitle"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.FooterTemplate>
</syncfusion:SfListView>
```

**[View document in Syncfusion Xamarin Knowledge base](https://www.syncfusion.com/kb/12330/how-to-refresh-listview-after-dropping-a-table-in-xamarin-forms-sflistview)**

## Requirements to run the demo

* [Visual Studio 2017](https://visualstudio.microsoft.com/downloads/) or [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/)
* Xamarin add-ons for Visual Studio (available via the Visual Studio installer).

## Troubleshooting

### Path too long exception

If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.