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

Possible to force SynchronizeProperties on SimpleListViewVisualItem?

2 Answers 132 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Karl B
Top achievements
Rank 1
Karl B asked on 02 Sep 2014, 09:35 PM
I have set up a custom SimpleListViewVisualItem and I would like the display to update when some of my properties change. SynchronizeProperties appears to only be called when I select a different item in the list. Is there a way to force SynchronizeProperties to be called from my code?


2 Answers, 1 is accepted

Sort by
0
Karl B
Top achievements
Rank 1
answered on 02 Sep 2014, 09:41 PM
Sorry for the duplicate posts but the website gave me an error when I submitted the question so I assumed it didn't work :(
0
Accepted
George
Telerik team
answered on 05 Sep 2014, 04:29 PM
Hello Karl,

Thank you for writing.

You can call the SynchronizeVisualItems method of RadListViewElement which will synchronize all the visual items with their respective data items and invoke VisualItemFormatting event:
this.ListView.ListViewElement.SynchronizeVisualItems();

I've closed your other thread in order to avoid any confusion.

Let me know if you have other questions.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ListView
Asked by
Karl B
Top achievements
Rank 1
Answers by
Karl B
Top achievements
Rank 1
George
Telerik team
Share this question
or