images from database

9 posts, 1 answers
  1. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 18 Nov 2008 Link to this post

    Hi,

    maybe it's a basic question, but i can't figure it out. I'm loading my images from database, receiving byte arrays, and converting them to first BitmapImages then to Images. Now i have a List<Image> collection, and i want to set this collection as source for the CoverFlow. When i do this, every time only the default "loading" image appears.
    I tried: coverFlow.ItemsSource = imageList; and also coverFlow.DataContext = imageList (and setting ItemsSource to {Binding}.
    So, what am i missing, how can i display these images?

    thanks,
     Levente
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 18 Nov 2008 Link to this post

    Hi Levente,

    Have you tried loading the images into an ObservableCollection<T> like in this demo:

    http://demos.telerik.com/silverlight/#CoverFlow/ItemsSource

    Also, how are you retrieving the images from the database?  I know when I was working on something similar through WCF I was having a problem with my webservice that was screwing up my result and not giving me any usable pictures. :)
  3. DevCraft banner
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 18 Nov 2008 Link to this post

    Hi Levente Mihály,

    The coverflow waits for the images to load and then it switches the loading image with the real one. In your case the event of the BitmapImage - DownloadProgress is not fired at all, because the data is already downloaded. We will fix this for service pack 2 (at the middle of December). Let us know if you need the fix earlier.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 19 Nov 2008 Link to this post

    Thank you for your answer.

    If it's possible we would be happy to have the fix by the end of November.

    Thanks again,
     Levente

  6. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Nov 2008 Link to this post

    Hello Levente Mihály,

    We will address the issue with the service pack(mid of December). I hope this timeframe is acceptable for you. If a fix is ready prior to the SP1 release date, we will send it to you right away.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 21 Nov 2008 Link to this post

    Yes, thank you, that'll be fine.

    Regards,
     Levente
  8. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2008 Link to this post

    So, when the service pack will be released (with the fix for this problem)?
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Dec 2008 Link to this post

    Hello Levente Mihály,

    We released the SP2. As soon as you download service pack 2 of RadControls for Silverlight your problem will be fixed.

    Sincerely yours,
    Miroslav Nedyalkov
  10. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 19 Dec 2008 Link to this post

    Thanks!
Back to Top
DevCraft banner