Saving Display Index

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    146 posts
    Member since:
    Dec 2009

    Posted 12 May 2015 Link to this post


     I'm looking to save the display index of the tiles in a TileList in our database, so users can each have their own order of the tiles.

    It appears you can't databind DisplayIndex, so I assume I have to update the viewmodels from the code behind.  I'm fine with this, but if there is a way to databind the displayindex so my view models are automatically updated, let me know.

    I'd prefer to not add a "Save" button.  I'd like to have it automatically save whenever a tile is rearranged. However I can't find an event to handle when the tiles are rearranged.  And since the display index is not databound, and the order of the itemssource is not updated by the TileList, I also have no events in the viewmodels that tell me the order was changed either.



  2. Maya
    Maya avatar
    4062 posts

    Posted 15 May 2015 Link to this post

    Hi Justin,

    DisplayIndex property is not a dependency one and you cannot bind it. You can try handling the event of DragDropManager and save the values of the display indices there. 

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top