I have the following case: a SFListview with another nested SFListview, in the nested SFListview I am trying to make each row have different columns, but it has to follow some requirements that I am not managing to implement, the nested SFListview has the "Width" property and if It can be modified in runtime with percentages, the minimum is 0 and the maximum 100% that would occupy all the available width, I am assigning all the elements a 'GroupDescriptor' the same so that they are part of the same row but what I want to achieve is that only the elements that add their widths that are less than or equal to 100% of the width are part of the same row, in case the "Width" property is 100% in that column there will be only one element, but if it had two buttons, one with 50% and another with 50% there should be 2 elements in that row and so on, I have prepared a video for you to see how the width change of the buttons works at runtime, I also have an example see what I've done so far on GitHub (I need it to work on: Android, iOS, UWP and macOS):
Video:
https://www.youtube.com/watch?v=C_KbaYlyCK4
GitHub sample:
Thanks for the info. The function request " Wrap Layout support in the SfListView " that you have referenced in case of being implemented in the future, would it allow me in the same row to have elements of different widths and heights? or for that would a new function request be required? And another question, so today it is impossible to contain elements of different widths and heights in the same row?
|
Query |
Response |
|
The function request " Wrap Layout support in the SfListView " that you have referenced in case of being implemented in the future, would it allow me in the same row to have elements of different widths and heights? or for that would a new function request be required? |
As of now, the SfListView supports to have items with different height by using the AutoFitMode property. The wrap layout will allow the items to have different widths in the same row.
Please refer to our user guidance document regarding the same,
We will let you know the details of the additional API or function if required at the time of release.
|
|
And another question, so today it is impossible to contain elements of different widths and heights in the same row? |
Yes. As per the implementation of the SfListView, we could not achieve the reported requirement since the column size will be applied to the entire ListView. |
Ok thanks for the information. One last question, is it possible to hide the name of the GroupDescriptor? I show you an image where "0" is the GroupDescriptor and I don't know how to remove it.
|
API |
Description | ||
|
GroupHeaderSize |
You can customize the size of the GroupHeader by using the SfListView.GroupHeaderSize property.
Please refer to our user guidance document regarding the same,
| ||
|
GroupHeaderTemplate |
If you are using SfListView.AutoFitMode as Height or DynamicHeight, then the size will be calculated based on the template elements. Hence, you can customize the GroupHeaderTemplate with Height 0.
Please refer to our user guidance document regarding the same,
| ||
|
QueryItemSize |
You can customize any particular GroupHeader height based on the index in the SfListView.QueryItemSize event.
XAML
C#
Please refer to our online regarding the same,
|