Hi, i know it's been ages, but a little bit to add on to this. I believe this occurs in conjunction with the shimmer control. I'm going to work around it myself with a different control to display the loading, but if anyone comes across this issue i'd suggest removing the shimmer control.
Theoretically you could replicate this by:
Here you go, it's when you use a custom view on a grouped header. Changes made that should replicated it. I've added in the gesture recogniser on the line too which should trigger the shimmer.
If pressing the button doesn't make the first row disappear, then click on the first row.
|
<syncfusion:SfListView x:Name="listView"
AutoFitMode="DynamicHeight"
ItemsSource="{Binding ContactsInfo}"
SelectionMode="None">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<shimmer:SfShimmer x:Name="shimmer"
HeightRequest="50"
IsActive="{Binding IsActive}">
<shimmer:SfShimmer.CustomView>
<Grid Padding="20"
ColumnSpacing="15"
RowSpacing="10"
HeightRequest="50"
VerticalOptions="CenterAndExpand">
<BoxView BackgroundColor="Gray"
HeightRequest="10"
HorizontalOptions="Start"
WidthRequest="300" />
</Grid>
</shimmer:SfShimmer.CustomView>
<shimmer:SfShimmer.Content>
<StackLayout>
...
</StackLayout>
</shimmer:SfShimmer.Content>
</shimmer:SfShimmer>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView> |
Hi Lakshmi,
That logically makes sense to me, unfortunately it doesn't entirely work for my actual app though. The item retains in the list, however, it ends up at the bottom of the group which still isn't ideal.
I also can't force the height in the listview, i have some slight variations in height if text needs to wrap, so ultimately it wouldn't work for me either.
Cheers,
Mark
Hi Mark,
Thank you for the update.
We are currently validating this. We will update you with further details on or before July 22, 2021. We appreciate your patience until then.
Regards,
Ranjith Kumar
|
<syncfusion:SfListView x:Name="listView"
AllowGroupExpandCollapse="True"
AutoFitMode="DynamicHeight"
IsStickyHeader="True"
ItemsSource="{Binding ContactsInfo}"
SelectionMode="None">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid>
<shimmer:SfShimmer x:Name="shimmer" IsActive="{Binding IsActive}">
<shimmer:SfShimmer.CustomView>
<Grid Padding="20"
ColumnSpacing="15"
HeightRequest="50"
RowSpacing="10">
<BoxView BackgroundColor="Gray"
HeightRequest="10"
HorizontalOptions="Start"
WidthRequest="300" />
</Grid>
</shimmer:SfShimmer.CustomView>
<shimmer:SfShimmer.Content>
...
</shimmer:SfShimmer.Content>
</shimmer:SfShimmer>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView> |
Hi,
Sorry for a long delay, haven't had a chance to prioritise this until now. Unfortunately it doesn't appear to work for my app, I've surrounded the shimmer control with a grid and the same behaviour still occurs. The first entry in the group ends up at the bottom when the shimmer is activated.
Cheers,
Mark
I've been able to modify your sample to replicate the problem, which appears to only occur with custom header and/or group header.
Click on the first contact in the first group, and watch them disappear.
In my app this also happens, until i remove the custom group header and header templates.
All good, glad to hear you're able to replicate too at least, look forward to a response!
Thanks,
Mark
|
<syncfusion:SfListView x:Name="listView"
AllowGroupExpandCollapse="True"
AutoFitMode="DynamicHeight"
IsStickyGroupHeader="True"
IsStickyHeader="True"
ItemsSource="{Binding ContactsInfo}"
SelectionMode="None">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate x:DataType="local:Contacts">
<Frame>
<shimmer:SfShimmer x:Name="shimmer" IsActive="{Binding IsActive}">
<shimmer:SfShimmer.CustomView>
<Grid Padding="20"
ColumnSpacing="15"
HeightRequest="50"
RowSpacing="10">
<BoxView BackgroundColor="Gray"
HeightRequest="10"
HorizontalOptions="Start"
WidthRequest="300" />
</Grid>
</shimmer:SfShimmer.CustomView>
<shimmer:SfShimmer.Content>
...
</shimmer:SfShimmer.Content>
</shimmer:SfShimmer>
</Frame>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView> |
Hi Lakshmi,
Thanks for that update, I've found a bit more information. I originally had a Frame wrapping the shimmer with padding of 0, but still had the issue. When changing the padding to 1, it appears to have resolved the issue.
It's not ideal as I don't really want to wrap any padding around the shimmer, but i can make this work if this is the only way.
Cheers,
Mark