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

Do Something When Checkboxes Show

1 Answer 46 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 04 Mar 2013, 11:50 AM
Hi,

I want to be able to have a jump list with check box functionality in it as below:

<telerikDataControls:RadJumpList x:Name="listIPAddresses" ItemTemplate="{StaticResource StyleIPList}" HorizontalAlignment="Left" Margin="10,101,0,0" VerticalAlignment="Top" Height="350" Width="436" EmptyContent="No IP Addresses Found" IsCheckModeEnabled="True" ListHeaderContent=""/>


I also would like that when the user starts checking an item / items, the appbar will update with edit and delete icons. Which event will be able to do this for me and how can I tell how many items are checked?

It would also be a bonus if I could stop the items turning a different colour if they are tapped by themselves without checkboxes.

Thanks,

Alex

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 06 Mar 2013, 02:27 PM
Hello Alex,

Thanks for writing.

Please take a look at the extensive documentation we have about the checkboxes support on RadDataBoundListBox/RadJumpList. Since RadJumpList inherits from RadDataBoundListBox, it supports all of its features (checkboxes included). Here's a link to the help resources:

http://www.telerik.com/help/windows-phone/raddataboundlistbox-features-multiselection-overview.html

Basically, there are a couple of events you can use to understand when the Check Mode has been activated and when an item's state has been changed. There is also a collection called CheckedItems which contains all items that are currently checked.

To prevent the item from changing its foreground when tapping on it, you can simply explicitly set the foreground of the root element withing your DataTemplate.

I hope this helps.

Regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
JumpList
Asked by
Alex
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or