Hi Supreet,
Here is how to create custom renderers for RadListView. Let's start with iOS:
- Create a class, which inherits from
Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewRenderer
- Override
OnElementChanged method. In this method, after calling the base method,
this.Control will hold a reference to the native control, so you can set its
AllowCellReorder to
true.
- Do not forget to register the renderer:
For Android, the process is quite similar:
- Create a class which inherits from
Telerik.XamarinForms.DataControlsRenderer.Android.ListViewRenderer
- Override
OnElementChanged method. In this method, after calling the base method, this.Control will hold a reference to a wrapper, that in turn holds the native control. In Android, you need to add
ItemReorderBehavior:
- Finally, register the renderer:
Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items