Add the native Chevron (DisclosureIndicator) in SfListView on iOS

Hi,
I have a requirement to display the arrows on listview items but it's not working!
Basically, I have created a CustomRenderer on iOS:
[assembly: ExportRenderer(typeof(ViewCell), typeof(ArrowCellRenderer))]
namespace NativeApp.iOS
{
[Preserve(AllMembers = true)]
public class ArrowCellRenderer : ViewCellRenderer
{
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
{
var cell = base.GetCell(item, reusableCell, tv);
cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator;
return cell;
}
}
}
and I have added ViewCell to the DataTemplate of each ItemTemplate in the listview but still, the chevrons do not appear.
Please advise

1 Reply 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team October 4, 2020 05:45 PM UTC

Hi Amir, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Add the native Chevron (DisclosureIndicator) in SfListView on iOS” from our end. As per the implementation, we would like to inform you that the SfListView is not implemented based on cells. Instead, you can customize the ListView using ListView.ItemTemplate. Hence, the disclosure indicator is not displayed in the SfListView. Please refer the following user guidance document to customize the ItemTemplate, 
UG links: 
 
Also, you can refer to the following document to load image in the ItemTemplate from the following link, 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 
  
 


Marked as answer
Loader.
Up arrow icon