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

Saving Display Index

1 Answer 43 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 12 May 2015, 07:11 PM

Hello,

 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.

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 15 May 2015, 01:09 PM
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. 

Regards,
Maya
Telerik
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
Tags
TileList
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or