Unplanned
Last Updated: 07 Jun 2024 07:24 by ADMIN
ArgumentOutOfRangeException is thrown when updating items outside of the viewport in grouped scenario with sticky group headers.
Unplanned
Last Updated: 30 Jan 2023 13:10 by ADMIN
Created by: SturmA
Comments: 1
Category: ListView
Type: Feature Request
1
Provide an option to set corner radius to the ListView item style and selected item style
Unplanned
Last Updated: 01 Apr 2024 15:34 by Clint
If there is a Picker control inside the ListView ItemTemplate and its SelectedIndex is bound to a property of the used data item, the user cannot select a value  - SelectedIndex is reset to -1.
Unplanned
Last Updated: 26 Apr 2023 21:00 by Aaron

Hi Team,

Please expose the ScrollViewer, or expose a method on the RadListView that allows the developer to set a Y device-independent vertical position. Setting the Y value will trigger the internal/native scrollview to go to that position without any special animations or manipulation. Just a pure position set.

I need to be able to programmatically scroll to a specific position in the list. Yes, I am aware of the ScrollToItem methods, however that will not work in my case as I explicitly need the Y position (for acceleration and manipulation of the exact position).

As an example, here's how I am currently doing it for a ScrollView:

private async Task AutoScrollAsync()
        {
            while (!(this.ScrollVelocity == 0 || this.ScrollVelocity > 0 && this.IsScrolledToBottom() || this.ScrollVelocity < 0 && this.IsScrolledToTop()))
            {
                await this.scrollView.ScrollToAsync(0, this.CalculateNextScrollY(), false);
                await Task.Delay(ScrollDelay);
            }

            this.StopScrolling();
        }

I am hoping to be able to do the same thing for the RadListView.

Thank you,

Aaron

Unplanned
Last Updated: 29 Nov 2022 08:17 by AscanioTziazas

Currently the LoadOnDemandCollection accepts a callback of the following format in the constructor:

public LoadOnDemandCollection(Func<CancellationToken, IEnumerable> action)

It is a very common scenario to populate the items asynchronously. In its current form the collection would require blocking the current thread to populate the results:

ItemsSource = new ListViewLoadOnDemandCollection((cancelationToken) =>
{
    var result = new List<ItemsModel>();
    try
    {
        var items = dataService.GetItemsAsync().Result;

        // TODO: Handle the result.

        return result;
    }
    catch (Exception e)
    {
        // TODO: Handle the exception.
        return null;
    }
});

This is not desired, as using Task.Result blocks the current thread and is considered an anti-pattern, in general.

A better approach would be to add a second overload of the constructor, allowing asynchronous calls:

public LoadOnDemandCollection(Func<CancellationToken, Task<IEnumerable>> action)

This way we can use async and await in the callback instead:

ItemsSource = new ListViewLoadOnDemandCollection(async (cancelationToken) =>
{
    var result = new List<ItemsModel>();
    try
    {
        var items = await dataService.GetItemsAsync();

        // TODO: Handle the result.

        return result;
    }
    catch (Exception e)
    {
        // TODO: Handle the exception.
        return null;
    }
});

According to my tests, the first blocking approach is not a problem, as the ListViewLoadOnDemandCollection starts a thread internally. That behavior is not obvious however, and using Task.Result is somewhat counterintuitive, so the second approach is much better from the user's perspective.

Unplanned
Last Updated: 07 Mar 2023 10:37 by Christoph
Swiping the cell overlaps the next cell when itemspacing is set. 

Unplanned
Last Updated: 19 Sep 2023 05:59 by Kori

The bug occurs on Android when removing an item from a group and using sticky group headers.

Unplanned
Last Updated: 10 Apr 2024 09:24 by Tom

if you start to reorder an item, and then drop it in the same position that it already had (i.e. abort/cancel the reorder) , the gray color is now stuck. The issue happens only on Android.

Unplanned
Last Updated: 21 Mar 2024 11:58 by ADMIN

When the VerticalItemSpacing is greater than 1 and an ItemStyle with a Border is defined the background of the item is overlapping the border.

 

             <telerik:RadListView Grid.Column="0" ItemsSource="{Binding Source}">

                <telerik:RadListView.LayoutDefinition>

                    <telerik:ListViewLinearLayout Orientation="Vertical" VerticalItemSpacing="4" />

                </telerik:RadListView.LayoutDefinition>

                <telerik:RadListView.ItemStyle>

                    <telerik:ListViewItemStyle

                        BackgroundColor="Green"

                        BorderColor="LightGreen"

                        BorderLocation="All"

                        BorderWidth="1" />

                </telerik:RadListView.ItemStyle>

                <telerik:RadListView.SelectedItemStyle>

                    <telerik:ListViewItemStyle

                        BackgroundColor="Orange"

                        BorderColor="OrangeRed"

                        BorderLocation="All"

                        BorderWidth="1" />

                </telerik:RadListView.SelectedItemStyle>

                <telerik:RadListView.PressedItemStyle>

                    <telerik:ListViewItemStyle

                        BackgroundColor="Orange"

                        BorderColor="OrangeRed"

                        BorderLocation="All"

                        BorderWidth="1" />

                </telerik:RadListView.PressedItemStyle>

 

                <telerik:RadListView.ItemTemplate>

                    <DataTemplate x:DataType="local:SourceItem">

                        <telerik:ListViewTemplateCell>

                            <telerik:ListViewTemplateCell.View>

                                <Grid>

                                    <Label Margin="10" Text="{Binding Name}" />

                                </Grid>

                            </telerik:ListViewTemplateCell.View>

                        </telerik:ListViewTemplateCell>

                    </DataTemplate>

                </telerik:RadListView.ItemTemplate>

            </telerik:RadListView>

 


Unplanned
Last Updated: 28 Feb 2023 13:53 by Nathan

Having ContentViews for left and right item swipe

  • Remove an Item from the List View Collection using right swipe content (The Item Source is then re-initialized as a new Observable Collection)
  • Attempt to perform a Swipe Gesture on any list view item.

The ListView crashes

Unplanned
Last Updated: 23 Nov 2023 14:36 by Giuliano
The iOS app loads a long time when the "IsItemsReorderEnabled" property is set to true and the screen orientation is changed while staying on the page.
Unplanned
Last Updated: 23 Nov 2023 13:09 by Webtoools
Exception in a very custom scenario and GroupHeaderTemplate usage. 
filtering the ListView by using additional buttons, and bindable filter descriptors
Unplanned
Last Updated: 02 Nov 2023 14:20 by Robert

When setting margin to the elements in the template, the margin is not respected

 

Unplanned
Last Updated: 27 Sep 2023 11:58 by Nathan

I have a collection of items, and one of the properties notifies changes to the UI. ("BooleanProperty") I also bind to the SelectedItem property on the list view to toggle this bool property to true or false.

I have another property "Description" that I am sorting by. When sorting the ListView and select an item, the items with the same value are reordered. 


Unplanned
Last Updated: 12 Sep 2023 12:57 by Allen
When I have an entry in the cell and start typing in the middle of text, Cursor will go to the end of text automatically after typing in a character. 
Unplanned
Last Updated: 16 Jan 2023 09:41 by Larry
Created by: Larry
Comments: 0
Category: ListView
Type: Feature Request
0
Provide keyboard navigation support for ListView.
Unplanned
Last Updated: 19 Dec 2022 15:44 by Rob

There is a slow performance when scrolling, expand/collapse items when the ListView Groups are sticky and GroupHeaderTemplate is used. 

Workaround
1. Set IsGroupHeaderStickty to false. 

or

2.. Use the default group header template

Unplanned
Last Updated: 26 Apr 2024 11:03 by Zhitao
In the RadListView, after adding a ListViewPropertySortDescriptor, if the property of the ItemsSource object which is used by ListViewPropertySortDescriptor.PropertyName changes , the ListView would be reordered automatically on WinUI, iOS and MacCatalyst. However, this does not seem to be the case on Android.
In addition, on iOS and MacCatalyst the sorting does not apply as expected. The sort order is wrong. 

Workaround: Use the direct properties from the model and add/clear the descriptors when property you sort changes.
Unplanned
Last Updated: 01 Mar 2024 16:19 by Vivek

Android: when tapping on load on demand template the data is not loaded. 

If you use the LoadOnDemandCommand you can bind the command to the button inside the template.

 

On WinUI there is an exception runtime

 

Workaround:

Use automatic load on demand mode or bind the command to the template

Unplanned
Last Updated: 26 Dec 2022 13:26 by Aleksandra
Hallo, imagine we want to extend your tutorial example from this link:

https://docs.telerik.com/devtools/maui/controls/listview/styling/group-header



Imagine we have additional field in City class (CountryFlag as Image)

 

public class City
{
public string Name { get; set; }
public string Country { get; set; }
public Image CountryFlag { get; set; }
}