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

How to auto-select with checkbox tapped item?

3 Answers 38 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.
Seznam
Top achievements
Rank 2
Seznam asked on 29 Aug 2014, 12:04 PM
Hi,
there is difference between the native Windows Phone implementation of checkboxes in list and Telerik DataBoundListBox.
When I click in the WP Email app the empty area on the left next to an email, the checkboxes shows up and the tapped email is selected.
In DataBoundListBox only the checkboxes shows up and I have to tap again to select the item.
Also if I deselect the last item in Email app, the checkboxes disappear again, in DataBoundListBox the checkboxes stay there.

Is there a way how automatically select the tapped item when showing the checkboxes and also how to simply deactivate the checkboxes when deselecting the last item?
Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 03 Sep 2014, 08:15 AM
Hello Martin,

Thank you for the question.

You can use the IsCheckModeActiveChanged event to detect when the checkboxes are being displayed and add the tapped item to the CheckedItems collection. With the ItemCheckedStateChanged event, you can see when an item has changed its checked state and if the the CheckedItems collection is empty, you can hide the checkboxes. I have attached a sample project for demonstration.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Seznam
Top achievements
Rank 2
answered on 05 Sep 2014, 09:18 AM
Hi,
thanks for the reply. I've implemented it this way and it works fine.
It will be probabaly useful to add this hint to RadDataBoundListBox web documentation as well?
0
Rosy Topchiyska
Telerik team
answered on 10 Sep 2014, 08:06 AM
Hi Martin,

I'm glad that the solution worked for you and thank you for the feedback. I will contact our documentation team.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
Seznam
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Seznam
Top achievements
Rank 2
Share this question
or