This is a migrated thread and some comments may be shown as answers.
images disappearing
1 Answer 36 Views
This is a migrated thread and some comments may be shown as answers.
calm_boy
Top achievements
Rank 1
calm_boy asked on 04 Sep 2008, 03:36 PM
Hi.

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
            ThumbnailsRadRotator.DataBind()
        End If
    End Sub


Any help would be highly appreciated :-(

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Sep 2008, 10:59 AM
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.
Asked by
calm_boy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or