A few questions/issues with DataBoundListBox

5 posts, 0 answers
  1. wildbohr
    wildbohr avatar
    9 posts
    Member since:
    Jun 2011

    Posted 23 Jul 2013 Link to this post

    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.

  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 26 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. wildbohr
    wildbohr avatar
    9 posts
    Member since:
    Jun 2011

    Posted 26 Jul 2013 Link to this post

    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?
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 31 Jul 2013 Link to this post

    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 >>
  6. wildbohr
    wildbohr avatar
    9 posts
    Member since:
    Jun 2011

    Posted 31 Jul 2013 Link to this post

    I did use Deyan's advice and have my buttons appearing/disappearing appropriately.

    Thanks for your tips, I'll give them a try!
Back to Top
DevCraft banner