images disappearing

2 posts, 0 answers
  1. calm_boy
    calm_boy avatar
    11 posts
    Member since:
    Mar 2007

    Posted 04 Sep 2008 Link to this post


    I am using a radrotator for an image gallery. When i first bind the rotator it is fine.

    But when i bind it again after postback, it gives me an error:

    Unable to cast object of type 'Telerik.Web.UI.RadRotatorItem' to type 'Telerik.Web.UI.ControlItem'.

    I don't understand why it is doing that.

    Here is the code for the binding:

    Private Sub RebindRotator()
            Dim projID As Integer = CInt(Request.QueryString("ID"))
            Dim query = From tbl In db.ProjectsImages Where tbl.ProjectID = projID Select tbl

            If Not query Is Nothing Then
                ThumbnailsRadRotator.DataSource = query
            End If
        End Sub

    Any help would be highly appreciated :-(
  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 05 Sep 2008 Link to this post

    Hi calm_boy,

    This problem is fixed in the latest version of the control. Please upgrade to SP1 and you should not experience this behavior anymore.

    All the best,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top