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

InvalidCastException

1 Answer 26 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grigory Perepechko
Top achievements
Rank 1
Grigory Perepechko asked on 22 Mar 2013, 11:48 AM
Hi, I encounter an ICE in 
StackVirtualizationStrategy.OnViewportSizeChanged method.

Seems that it works with more concrete type than it should.

Seems the wrong line is (should be RadVirtualizingDataControlItem to my mind).
foreach (RadDataBoundListBoxItem realizedItem in this.owner.realizedItems)

I derived my class from RDBLB and changed container to my descendant from RadVirtualizingDataControlItem.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Mar 2013, 01:27 PM
Hello Grigory,

Thanks for writing and for reporting this issue.

We will make sure to revisit the logic and update it if necessary.

For the time being, please derive your items from RadDataBoundListBoxItem to prevent the exception from happening.

Regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Grigory Perepechko
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or