Thank you for writing.
uses virtualization for its VisualItems
. For editing a VisualItem
you must use VisualItemFormatting
events. Not all VisualItem
objects can be visible at the same time in the RadListView
estate area in your application. This is why only the visual items that can be shown in the estate area get created. These visual elements are reused during scrolling, filtering and other operations in the list, which dramatically improves the performance and memory footprint as only a small number of visual items is created. This is the reason, why a ToggleElement
can not be access from another event.
To achieve your scenario, you can add some value to the data items' Tag and in the formatting event check this value and style the item accordingly:
sender, ListViewVisualItemEventArgs e)
sender, ListViewItemEventArgs e)
I hope this information helps. Do not hesitate to contact us, if you have additional questions.
the Telerik team