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

A few questions/issues with DataBoundListBox

4 Answers 48 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.
wildbohr
Top achievements
Rank 2
wildbohr asked on 24 Jul 2013, 01:41 AM
I have been trying to get an implementation of DataBoundListBox to work like the following.

Used to list players in a game. The user can press and hold to trigger the built in reorder. When the user has the reorder active it will also place 2 new icons over the player entry on that line (a delete and a move to 1st place). I am only showing the icons when the user has entered into the reorder which brings me to the 1st problem.

1. Is there an Event when leaving reorder?

I need to be able to identify the reorder is not occurring any more to hide the icons again. I can't find any corresponding event for this.

The 2nd issue is around these icons actions not working when the reorder is active.

2. Buttons on item template appear to have their "Taps" swallowed
When I try to tap on these new icons it causes the reorder to exit but my event never gets fired.

Which brings me to my last issue

3. Is there a way to end the reorder if active pragmatically?
In the event that a user deletes a player in the list I want to exit the reorder functionality.

I've been looking around the site and googling but I can't find any examples of these issues I've run into.

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 26 Jul 2013, 07:47 AM
Hello John,

Thanks for writing.

Currently there is a way to activate the Reorder mode programmatically for a given visual item. There is no way, however, to stop it except from tapping outside the reorder buttons. There are also no events exposed to inform you when the reorder popup is closed/opened. You can easily find the RadWindow component internally used top display the reorder control and hook its Opened/Closed events though.

We can revisit this functionality and extend it to cover your requirements but that will happen most probably no earlier than a week.

Please let us know if this is OK for you.

Regards,
Deyan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
wildbohr
Top achievements
Rank 2
answered on 26 Jul 2013, 02:08 PM
That could potentially work for my issue #1, I'll try experimenting this weekend with it.

Any thoughts on the other 2 issues?
2. Buttons on item template appear to have their "Taps" swallowed. When I try to tap on these new icons it causes the reorder to exit but my event never gets fired.

3. Is there a way to end the reorder, if it's currently active, pragmatically?
0
Todor
Telerik team
answered on 31 Jul 2013, 01:03 PM
Hi John,

If you use the approach that Deyan mentioned for getting the window component, you can use it, and set its IsOpen property to false. This is a way to close the reorder control. As to the "swallowed taps", this is a feature of the window component. When it's active, it restricts other interactions. It has a property IsClosedOnOutsideTap that you can set to false if you want to keep the reorder control visible when you tap outside of the reorder buttons. However the manipulation that you make outside of the reorder control will still have no result and no events will be fired.

Regards,
Todor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
wildbohr
Top achievements
Rank 2
answered on 31 Jul 2013, 01:12 PM
I did use Deyan's advice and have my buttons appearing/disappearing appropriately.

Thanks for your tips, I'll give them a try!
Tags
DataBoundListBox
Asked by
wildbohr
Top achievements
Rank 2
Answers by
Deyan
Telerik team
wildbohr
Top achievements
Rank 2
Todor
Telerik team
Share this question
or