I want to show a list of items with multi select on a click of a button. I figure our there are no dropdowns. Preferebly I would like to have a popup sort of component with list of items to select. Is this possible with PCL with out using native?
You don't need to write custom renderer for what you're looking for. The UI for Xamarin RadListView has support for multiple selection.
The popup UI is up to you on how you want to build it, the keyt takeaway is that the RadListView has a SelectedItems property that you can bind to. The demo in link I shared above shows you how to do this.
As an example of how to show that list selector is you can just have the RadListView on the page and toggle the IsVisible property when the user clicks the button.
Here's small demo that does that, I show or hide the parent Grid of the "popup":
OutputLabel.Text += $"\r\n{item} added to selection(s)";
}
}
if (e.OldItems != null)
{
foreach (var item in e.OldItems)
{
OutputLabel.Text += $"\r\n{item} removed from selection(s)";
}
}
}
}
}
You can try this at runtime in the attached demo.
Regards,
Lance | Tech Support Engineer, Sr.
Progress 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