My ListView is also not loading fully (Android and Windows)
After or at loading page, listview is only showing 2-3 items instead of all 100. I have to click one time on a item to load all.
it doenst matter if there are 5, 100 or 500 items in the list. list just not loading correctly.
I have this issue now since one month.
As you can see, listview is cutted until i click once on a item.
Direct after start and loading:
https://gyazo.com/9b8ae30d8ad4bc0b8ce75d0a7a00e2d7
After Click on item
Hi Steven,
We would like to inform you that there is a framework level issue in visual studio preview 4 , which is fixed in our SP NuGet release update version 20.2.43 which is available for download (https://www.nuget.org/) and let us know if you still facing the same issue.
Can you please share the below details which will be more helpful for us to find the solution as soon as possible if the reported issue is reporduced
Regards,
Suthi Yuvaraj.
Still have same problem since over 2 months
Functions that also dont work:
listView.ExpandAll();
listView.CollapseAll();
HeaderSize=
GroupHeaderSize=""
have no effect in latest Versions.
VisualStudio und MAUI Version: 17.4.0 Preview 1.0 (older Versions same problem)
SfListView-Version: 20.2.44
Hi Steven ,
# Regarding Functions that also dont work
|
HeaderSize and GroupHeaderSize |
We suggest you to remove the AutoFitMode property or set the AutoFitMode as None, If you need to specify the size particular item of listview , as the AutoFitMode allows the listview to dynamically adjust the size of items based on the content irrespective of the size given to the header or groupheader. |
|
ExpandAll() and CollapseAll() |
We are able to reproduce the issue in our end. We have internally logged a bug and working for the fix and the fix will be include in our upcoming weekly nuget August 23,2022. We appreciate your patience until then. |
#Regarding ListView is showing only the half screen until click once on a item.
We would like to let know that we have faced the same issue in visual studio 2022 preview 2 , we have fixed that with the work around , the issue is fixed in framework level in the preview 4 release and we reverted the workaround in our SP NuGet release update version 20.2.43 ,Now the all items are loaded properly. We are unable to reproduce the loading issue at our end. If possible can we arrange a meeting to investigate the problem at your end ?
Regards,
Suthi Yuvaraj.
Thank you for your quick response, I am very pleased that you answered me in such detail.
GroupHeaderSize
Here i hoped to find some settings for padding or TextColor, TextSize. Group Name is only left-top aligned and looks not good
About the ListView load problem:
I found out when this problem occurs.
As long as data is inserted into an OberservableCollection and the binding is created from it, there are no problems.
But when data comes from a DataTable, the ListView seems to have trouble handling it and probably can't load the data in time or fast enough.
You should take a look at it, because I can imagine that they solved the problem with an observable collection, but didn't quite pay attention to the fact that data could also come from a DataTable.
Also please give a look on this function:
listView.SelectedItems.Clear();
It does nothing, It doesnt matter how many items i select, if i hover 'SelectedItems' to see the information, it just give me the info that SelectedItems Count is Zero, which is simply not true...
EDIT: listView.SelectedItems.Clear() // DONT WORK WITH DATATABLE AS BINDING CONTEXT (ItemsSource)
BUT WORKS WITH OBSERVABLE COLLECTION
And here just a little Question:
Is it possible to change the GroupHeader Background Color and TextColor specific?
I couldn't find anything about it in the documentation
Hi Steven,
#Regarding GroupHeader Customization
In SfListView , you can customize the groupheader by defining the necessary customization to the items which is added inside the groupheader template. Please refer the below code snippet for groupheader customization
|
<syncfusion:SfListView.GroupHeaderTemplate> <DataTemplate> <!-- Customization for groupheader background color and padding --> <StackLayout Padding="10,0,0,0" BackgroundColor="#E4E4E4"> <!-- Customization for groupheader Text --> <Label Text="{Binding Key}" FontSize="22" TextColor="Chocolate" FontAttributes="Bold" VerticalOptions="Center" HorizontalOptions="Center" Margin="20,0,0,0" /> </StackLayout> </DataTemplate> </syncfusion:SfListView.GroupHeaderTemplate> |
#Regarding About the ListView load problem and SelectedItems is not
working
We would like to let you know the reported issue items are not loaded on the initial loading is not reproduced, we have prepared a sample from the code snippet that you have provided and converted the JSON object to data table from web url , items are loaded properly and selection and selectedItems() contains the exact selected items value at our end. We have attached the workable sample , Please have a look at this sample and let us know if missed any customization you have done in your application or revert us with modified replicate the reported issue on our end. Please share details how do you set the ItemsSource of the Listview? It will be more helpful for us to provide timely solution.
Also, we have attached the KB which contains information about how to bind the data table to the listview for your reference.
KB Link: https://www.syncfusion.com/kb/9697/how-to-bind-data-from-the-datatable-to-listview-in-xamarin-forms
Regards,
Suthi Yuvaraj.
I facing the same issue, i uploadet here my sample with your ViewModel, on first Page you have to Click on "Termine".
What iam talking about is, that the ListView is only showing the half of "All" items. Your Json Array is to big to see the issue.
In my Sample i have linked my own json with 5 items. You will see the cut on the half.
If this is improtant: I build and emulate with Android 12.1, Pixel 5 API 32
Feel free to use my referenced link in ViewModel
https://github.com/ShiiikK/Syncfusion-ListView-Load-Bug-Repo
Are you facing the same issue now ?
Hi Steven ,
Currently, we are validating the reported issue on our end. We have checked the provided sample in windows platform with datatable issue is not reproduced at our end. We are in need of two more business days to validate this issue and check the issue in both the platform on our end. We will update you with further details on or before August 25, 2022. We appreciate your patience until then.
Regards,
Suthi Yuvaraj.
I found out what is causing the error, it is AutoFitMode.
your listView Control cannot handle AutoFitMode"DynamicHeight". if i set this to None and set my own ItemSize, then it works like expected.
PS. i tested it also with your newest Version from yesterday
AutoFitMode="None" solved it for me, for now.
I'm also facing the problem
Listview working properly on WinUI but not on Andriod
<DataTemplate x:Key="AInfoTemplate">
<Grid RowDefinitions="Auto,Auto,Auto" RowSpacing="5" Padding="5,10">
<Label Grid.Row="0" Text="{Binding AName}" FontAttributes="Bold" FontSize="20" LineBreakMode="NoWrap"/>
<Label Grid.Row="1" Text="{Binding ACatStr}" LineBreakMode="NoWrap"/>
<Label Grid.Row="2" Text="{Binding DTypeStr}" LineBreakMode="NoWrap"/>
<!--<HorizontalStackLayout Grid.Row="2">
<Label Text="{Binding DType}"/>
<Label Text="{Binding ADOB, StringFormat='{}{0: : dd/MM/yyyy}'}"/>
</HorizontalStackLayout>-->
</Grid>
</DataTemplate>
<syncLV:SfListView x:Name="LV"
ItemsSource="{Binding AInfo_List}" SelectedItem="{Binding SelAInfo}"
SelectionMode="Single" AutoFitMode="Height"
ItemTemplate="{x:StaticResource AInfoTemplate}">
</syncLV:SfListView>
List<AInfo> _AInfo;
public List<AInfo> AInfo { get => _AInfo; set { _AInfo = value; RaisePropertyChanged(nameof(AInfo)); RaisePropertyChanged(nameof(AInfo_List)); } }
public List<AInfo> AInfo_List { get => AInfo.OrderBy(X => X.AName.ToLower()).ToList() as List<AInfo>; }
LV.SelectionChanged += async (s, e) => await Navigation.PushAsync(new AInfo_Details(ref CurAppData));
Hope this h
Hi Steven,
We would like to let you know that we are unable to reproduce the issue in the provided sample with all the AutoFit Mode(Height, DynamicHeight, and None) settings. We have attached the output video and the tested scenario details for your reference.
Tested Scenario Information:
Visual Studio preview version: 17.4.0 Preview 1.0
SfListView version: 20.2.45
Tested Platform : Device (Android 9 API- 28) and Emulator(Android 12.0 API-31 )
If possible, can we arrange a meeting to investigate the problem at your end? Could you please share the exact .NET Maui version details also.
Regards,
Suthi Yuvaraj
Hey, try to change the
AutoFitMode="Height" to AutoFitMode="None" and add then also ItemSize="40"
or other Value to define the size manually. this fixed for me the issue.
Hi Amit,
We have checked the reported query on our end. We are unable to reproduce the issue at this time, we suspect that the issue is caused by a conflict between dependency packages. We have internally logged the issue and working on upgrading the packages(6.0.486) and compatibility of our control. We will fix the issue and include the fix in our upcoming weekly nuget August 30, 2022, or we will update you with further details on or before August 30, 2022. We appreciate your patience until then.
Regards,
Suthi Yuvaraj.
Hi Steven/Amit,
We regret to inform you that we could not include the issue fix as promised We will fix it and update you with further details on or before September 8,2022. We appreciate your patience until then.
Regards,
Suthi Yuvaraj.
Hi Steven/Amit,
As mentioned ,we have internally logged the issue and working on upgrading the packages(6.0.486) and compatibility of our control. Here we have shared custom assembly of Syncfusion.Maui.ListView package with dependencies . We request you to use the dlls in your project and let us know if you are still facing the issue.
Regards,
Suthi Yuvaraj.