Here is the code that I am using.
cardImagesCollection = New ObservableCollection(Of String)() |
For Each listItem In doc.Descendants("{#RowsetSchema}row") |
strPicPath = "http://URLADDRESS/" & listItem.Attribute("ows_RequiredField").Value |
cardImagesCollection.Add(strPicPath) |
Next |
RadCoverFlow1.ItemsSource = cardImagesCollection |
11 Answers, 1 is accepted
You could use this code converter in order to convert the examples you are interested in (or at least the code): http://converter.telerik.com/.
About the problem you are facing - could you check the addresses you are trying to fin the images at - the generated addresses might be incorrect. You could use debugging tool like Firebug (if you are using FF) or Fiddler (if you are using IE) in order to track what your application tries to download.
Hope this helps.
Kind regards,Miroslav Nedyalkov
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.
You could refer to the following example - it demonstrates how to use the CoverFlow control to bind to a collection of URIs that are fetched from a web service (it uses Flickr): http://demos.telerik.com/silverlight/#CoverFlow/DataInfo.
If you still have problems with this, please open a support ticket and send us a sample project - this will help us assist you to solve the problem.
Best wishes,Miroslav Nedyalkov
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.
I am now running into another problem with the control and the examples for the Q1 2010 version don't address this scenario. The collection that I am binding to is can be updated dynamically throughout the lifespan of the application. When I first load the application and populate the collection, the coverflow control populates with images and works exactly as it is intended. However, when I attempt to change the images displayed in the coverflow by emptying the collection and refilling it with new items, when I set the itemsSource property to the collection I am getting a Null Reference Exception. The application always populates the collection and binds to it correctly the first time but as soon as I empty the collection and set the itemssource property to the collection again, I get the error. Any idea what may be causing this problem? The code below is from my project.
Dim doc As Xml.Linq.XElement = e.Result |
Dim strPicPath As String |
Me.imgInfo.Clear() ' Clear the image collection and populate new images. |
For Each listItem In doc.Descendants("{#RowsetSchema}row") |
Dim card As New cardData |
strPicPath = "http://XXXXXXX/" & listItem.Attribute("ows_RequiredField").Value ' build the URI for the image |
card.cardCat = selCat ' set the category for the image |
card.cardURI = New Uri(strPicPath, UriKind.Absolute) ' set the URI for the image |
imgInfo.Add(card) ' add the card object to the collection |
Next |
cardCoverFlow.ItemsSource = imgInfo 'This command works the first time it is run but throws an exception if the code runs a subsequent time. |
I couldn't reproduce this issue at my side. Could you please send us a sample project that reproduces the issue? This would help us a lot finding what the problem is.
As a suggestion - you could use an ObservableCollection and not set the ItemsSource again, but in my opinion this couldn't be causing the problem.
Sincerely yours,Miroslav Nedyalkov
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.
If i repopulate the collection again later with the orginal content, it will render
If i add additional items to the collection without removing those already rendered by the coverflow, the new items will render.
Could you please, open a new support ticket and send us a simple application that could be used to observe the problem?
Sincerely yours,
Valeri Hristov
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.
Calling Clear() or RemoveAll() extension method on an ObservableCollection causes the treeview to also not behave correctly.
As far as I can remember, this problem was caused by a bug in RadCoverFlow, when the control is in virtualizing mode. Recently the RadTreeView virtualization was reworked and I guess the behavior you are seeing might be related to a bug. As usual, sending a simple application that could be used to observe the problem is the best way to find a solution.
Sincerely yours,
Valeri Hristov
the Telerik team
Your controls are still the best in the industry. Here's to hoping your tutorials catch up.
Thank you for your feedback. We will take this in our next discussion in order to improve our examples and support for VB.NET developers.
Please do not hesitate to contact us if you require any further information.
George
the Telerik team