9 Answers, 1 is accepted
0
Accepted
Hello Rod,
This can be achieved with RadListbox using CollectionViewSource. Unfortunately this scenario is not working with the latest release of our controls. We will try to fix the problem for the SP, which is scheduled for the beginning of next month. Hope this timeframe is acceptable for you.
I have attached a sample project that shows the approach, but notice that it will throw error when selecting items from different groups.
All the best,
Boyan
the Telerik team
This can be achieved with RadListbox using CollectionViewSource. Unfortunately this scenario is not working with the latest release of our controls. We will try to fix the problem for the SP, which is scheduled for the beginning of next month. Hope this timeframe is acceptable for you.
I have attached a sample project that shows the approach, but notice that it will throw error when selecting items from different groups.
All the best,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Rod
Top achievements
Rank 1
answered on 18 Mar 2013, 08:20 PM
It is what it is, we'll wait.
0
Vaidas
Top achievements
Rank 1
answered on 28 Jul 2015, 07:49 AM
Hello, any news about RadListBox headers?
0
Hello Vaidas,
The approach that we could suggest you to use in order to achieve the desired is the one proposed by Boyan below - to use CollectionViewSource. The issue that was previously observed is already fixed.
Please, check the attached sample using the latest official released version Q1 2015 SP and let us know if that is what you are looking for.
Hopes this helps.
Regards,
Nasko
Telerik
The approach that we could suggest you to use in order to achieve the desired is the one proposed by Boyan below - to use CollectionViewSource. The issue that was previously observed is already fixed.
Please, check the attached sample using the latest official released version Q1 2015 SP and let us know if that is what you are looking for.
Hopes this helps.
Regards,
Nasko
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
0
Stephen
Top achievements
Rank 1
Iron
answered on 17 Dec 2015, 05:56 PM
Is there some reason this would not entirely work within a UserControl? I was able to do everything in the example except that my group headers are blank, i.e. all the player names show up, but the Club does not. There is actually an empty row displaying, but not the Club...
0
Hi Stephen,
We tested the sample in a UserControl and it seems everything is working as expected on our side. Please, check if the HeaderTemplate of the group is applied as expected - if it is not the observed blank space could be displayed. Check the attached video that demonstrates how the sample is working on our side and how the issue could be reproduced if the HeaderTemplate is not applied as expected.
If that does not help please, send us a sample that reproduces the issue - thus we could provide you with a prompt solution.
Hope this helps.
Regards,
Nasko
Telerik
We tested the sample in a UserControl and it seems everything is working as expected on our side. Please, check if the HeaderTemplate of the group is applied as expected - if it is not the observed blank space could be displayed. Check the attached video that demonstrates how the sample is working on our side and how the issue could be reproduced if the HeaderTemplate is not applied as expected.
If that does not help please, send us a sample that reproduces the issue - thus we could provide you with a prompt solution.
Hope this helps.
Regards,
Nasko
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
0
Stephen
Top achievements
Rank 1
Iron
answered on 18 Dec 2015, 05:41 PM
I think the HeaderTemplate is applied. I pretty much copied the
original project - I have attached mine, only the name have been changed
to protect the innocent!
:-)
It's interesting everything seems to be there except the actual club
name...by that I mean the players (associates in my case) are being
sorted and broken into groups exactly as they should...
just tried to attach file, but it says only jpg, jpeg, gif, or png...
0
Stephen
Top achievements
Rank 1
Iron
answered on 21 Dec 2015, 08:38 PM
I found my issue i in the code block:
<
DataTemplate
x:Key
=
"groupTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Aquamarine"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
StackPanel
>
</
DataTemplate
>
"Name" appears to be some other property than the the property associated with the Player class, i.e. I thought it was supposed to match the property in the following code block:
<
telerik:RadListBox.ItemTemplate
>
<
DataTemplate
>
<
VirtualizingStackPanel
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
VirtualizingStackPanel
>
</
DataTemplate
>
</
telerik:RadListBox.ItemTemplate
>
0
Hello Stephen,
We are glad you have managed to achieve the desired. If you have any other questions, please let us know.
Regards,
Kalin
Telerik
We are glad you have managed to achieve the desired. If you have any other questions, please let us know.
Regards,
Kalin
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