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

ItemContainerStyleSelector doesn't work when Virtualization is enabled

2 Answers 35 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tobania
Top achievements
Rank 1
Tobania asked on 28 Mar 2011, 03:35 PM
Hi,

I have a combobox with some items that need to be disabled. I implemented this with an ItemContainerStyleSelector which will check the item for a certain property and then enables/disables it accordingly. This works like a charm.

Because the combobox can contain 1000+ items (and is quite slow in that case), I also implemented Virtualization for this combobox. This improves performance significantly.

However, enabling Virtualization breaks my ItemContainerStyleSelector. It works fine for the initially visible items, but when I start scrolling the styles of those first items just seem to be repeated for everything that comes next.

Debugging reveals that SelectStyle() is indeed being called for the first few items only, and never again afterwards.

Tia
Sodi

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 31 Mar 2011, 04:53 PM
Hello,

Thank you for contacting us.

We will look into this problem. We will contact you shortly. 
 

Best wishes,
George
the Telerik team
0
George
Telerik team
answered on 06 Apr 2011, 08:32 AM
Hi,

 
It took some time to investigate the problem. It seems it is a bug in the RadComboBox control. I am glad to update your telerik points. The fix for the issue will be included in our SP1 Q1 next week.

Please do not hesitate to contact us if you require any further information.


Kind regards,
George
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Tobania
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or