This is a migrated thread and some comments may be shown as answers.

Checkboxes not displayed on some items

2 Answers 60 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florent
Top achievements
Rank 1
Florent asked on 24 Jul 2013, 11:54 AM
Hello,

I am currently writing a multiple image photo picker in a similar way as the one provided in the Photos app and mail attachments of Windows Phone 8.

An album can both contains sub albums and pictures so I would like only my pictures items to be checkable. I managed to do it by code but I would like too to avoid displaying checkboxes on the albums. Is it possible to do it withDataBoundListBox ?

Thanks for your answers.

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 29 Jul 2013, 01:39 PM
Hello Florent,

Thank you for writing.

With the current implementation, RadJumpList displays checkboxes next to all of the items. However, there is a way to workaround this, if you need to.

1) First, extract the default control template of Checkbox by using Blend of VisualStudio's designer.
2) Then use a converter to determine whether the Checkbox should be visible or not, depending on whether the current item is album or picture:
...
<Grid Visibility="{Binding Converter={StaticResource AlbumToVisibilityConverter}}" Margin="{StaticResource PhoneTouchTargetLargeOverhang}">
...
This way you can add a converter which should return Visibility.Collapsed if the current item is Album, or Visibility.Visible otherwise.
3) Finally, use the extracted style with the applied modifications and apply it to RadJumpList through the CheckBoxStyle property.

I hope this information helps.

Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Florent
Top achievements
Rank 1
answered on 07 Aug 2013, 02:11 PM
It works great ! Thanks
Tags
DataBoundListBox
Asked by
Florent
Top achievements
Rank 1
Answers by
Todor
Telerik team
Florent
Top achievements
Rank 1
Share this question
or