Reorder items invoke from applicationbar

7 posts, 0 answers
  1. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 21 May 2014 Link to this post

    hello,
    in my view i have a DataBoundListBox and a ContextMenu (for edit and delete item).
    it is possibile invoke Reorder item from a button in applicationbar?

  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 23 May 2014 Link to this post

    Hello Ivan,

    Yes, it is possible.

    Check out the online documentation regarding this topic here:

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

    Take a look at the Activaging Reorder Mode programmatically topic.

    Regards,

    Deyan
    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.

     
  3. DevCraft banner
  4. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 23 May 2014 in reply to Deyan Link to this post

    ok thanks. Exists a event which is called when "Reorder" is complete?
    I have in my ItemsSource a column position ad i update into Db new value.

    ItemReorderUpButtonTap
    ItemReorderDownButtonTap

    not returning a new position and old position

    thank you
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 26 May 2014 Link to this post

    Hi Ivan,

    Thanks for writing back.

    There's an event which is fired when the reordering state is closed, i.e. when the reorder buttons are hidden and the visual state of the items is restored to normal.

    This event is called ​ItemReorderStateChanged.

    I hope this is helpful.

    Regards,
    Deyan
    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.

     
  6. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 26 May 2014 in reply to Deyan Link to this post

    hello Deyan,
    thank you for response. In a particular case i receive this error

    [System.InvalidOperationException] = {System.InvalidOperationException: Cannot resolve TargetName RootScale.
       at MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
       at System.Windows.VisualS...

    why?
    thanks
  7. dev
    dev avatar
    20 posts
    Member since:
    Dec 2005

    Posted 26 May 2014 in reply to Deyan Link to this post

    Excuse me, i don't have event ItemReorderStateChanged

    my version is 2014.1.514.0 (windows phone 8, vs 2012)
  8. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 26 May 2014 Link to this post

    Hi Ivan,

    Thanks for writing back.

    You should be able to access this event. It has been added prior to Q1 2014.

    As for the exception you are experiencing: this exception might occur if you are also enabling the Tilt Effect on the ListBox' items. The Tilt effect is not compatible alongside the Reorder functionality.

    Let us know if you have additional questions.

    Regards,
    Deyan
    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.

     
Back to Top
DevCraft banner