InvalidCastException

2 posts, 0 answers
  1. Grigory Perepechko
    Grigory Perepechko avatar
    27 posts
    Member since:
    Aug 2009

    Posted 22 Mar 2013 Link to this post

    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.
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 22 Mar 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top