Is it possible to have the listpicker (like the listpicker in th sl toolkit) to have the user choose one or more items in
the listpicker.
The SL tookit have a property "SelectionMode=Multiple" and have a special eventhandler that are getting an IList with the selected items.
Is this possible with the RadListPicker ?
Regards
Fredrik
22 Answers, 1 is accepted
Do you mean to have the multiple select option in the Popup only with checkboxes, or something else?
Regards,
Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Hello
I mean with checkboxes.
Regards
Fredrik
Thank you for your feature request.
We have it in our product backlog and we will do our best to implement it either for Q1 2012 or for the service pack afterwards. We are also thinking of extending the Popup part of the control by adding a JumpList in it so that large data can be grouped and easily navigated.
I hope this information is useful. Do not hesitate to write us back with any feedback you may have - it is most appreciated.
Regards,
Georgi
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
It's now the end of April. Is there a new status on multi-selection mode for the list picker control? I'm finding myself having to move to all Telerik controls and I'm incredibly disappointed that we don't have a multi-select option for the list picker. I'm not sure what I'd even do for a workaround.
Thanks
Thank you for contacting us. We are about to start the implementation of the desired feature. Just to further clarify, is the expected behavior similar to the one where you pick the day:
Kiril Stanoev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
In my case it looks right.
Is this going to work in just popup or inline also ?
Regards
Fredrik
The alarm implementation is exactly what I would expect to see. I am assuming you would always see the full screen view even if you have a single item.
Are you able to provde an ETA?
we target our Q2.2012 release for this feature. It maybe implemented as a separate control (we are still not sure).
We will do our best to have it for mid-June timeframe. The idea is this control to work only in Popup mode. If you have any suggestions, ideas or any thought related to this functionality - please let us know!
Regards, Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I can confirm this is coming for Q2 release. If someone needs the binaries earlier - please open a support ticker and we will send you a preliminary version.
All the best, Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Just a note, the multiselect listpicker should have the possibility to return empty selection like the recurrence picker in the built-in Alarm clock application. Thanks.
Yes - we will have this feature in mind.
Greetings, Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
In the sample code for this control, change categoryItemsSource[0], [1] to categoryItemsSource[1], [2] and you will see the bug, Items [0], [1], [2] will be selected by the control.
As I mentioned in the other thread - we are not able to reproduce this issue, so it is still not confirmed. Please refer to the initial thread until we resolve it.
Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
It seems like the multiple selection works, however a question of how to display multiple items.
You have the delegate function SummaryForSelectedItemsDelegate and I can see how I can manipulate the (summary) text from your example, but how do I display that text in the control when returning from the Popup?
I must be doing something wrong, because I get no text at all. Like the text 'No selection' when no items have been selected, I would like to show the text 'Items selected' when one or more item is in fact selected.
Thank you.
Karsten
The text is displayed automatically, you do not need to do anything.
Do you have any custom styles, or templates?
Greetings, Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I do not have any custom styles or templates.
This is my XAML:
<telerikInput:RadListPicker Header="user shelf" PopupHeader="user shelf" InlineModeThreshold="5"
x:Name="lpUserShelf" SelectionMode="Multiple"
SelectionChanged="lpUserShelf_SelectionChanged">
<telerikInput:RadListPicker.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" />
</StackPanel>
</DataTemplate>
</telerikInput:RadListPicker.ItemTemplate>
<telerikInput:RadListPicker.PopupItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" />
</StackPanel>
</DataTemplate>
</telerikInput:RadListPicker.PopupItemTemplate>
</telerikInput:RadListPicker>
I see no text in the control when I return from the popup.
Karsten
I was somewhat unprecise in my last reply.
If I use the SummaryForSelectedItemsDelegate delegate I get no text.
If I do not use it, I get the text/value if I only select one item. If I select two or more, I get the class name(s) and not the value.
Karsten
Can you please paste the code of the delegate?
Greetings, Valentin.Stoychev
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
private void lpUserShelf_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this.lpUserShelf.SummaryForSelectedItemsDelegate = SummaryForSelectedItemsDelegate;
}
private object SummaryForSelectedItemsDelegate(IList list)
{
var summary = String.Empty;
for (var i = 0; i < list.Count; i++)
{
var isLast = i == list.Count - 1;
var item = (UserShelf)list[i];
summary = String.Concat(summary, item.Name);
summary += isLast ? string.Empty : ", ";
}
if (summary == String.Empty)
{
summary = "No selection";
}
return summary;
}
As explained in my previous post, then if I do not use the delegate, I get a text if only one item is selected,
class name if two (ore more are selected) and nothing if the delegate is used if at least one is selected.
When you use the delegate the Summary that gets displayed has the same Template as the ItemTemplate of the RadListPicker, so what you should do is have a delegate that returns an object that has a Name property, because this is the property that your ItemTemplate is bound to. For example:
return
new
MyDataObject() { Name = summary };
Greetings,
Todor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Quick and execellent support as always.
Karsten