Large number of images

4 posts, 0 answers
  1. Eamonn Dunne
    Eamonn Dunne avatar
    3 posts
    Member since:
    Sep 2003

    Posted 26 Mar 2009 Link to this post

    Hi

    if we want to databind to a large number of images (for example 500), how efficient is Coverflow? Does it effectively load all of the images into browser memory when the initial databind is performed, or does it only load the actual images from the image URL once the user scrolls through the control and each image becomes 'visible'?

    Thanks!
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 Mar 2009 Link to this post

    Hi Eamonn Dunne,

    It loads the images, when it tries to display them and preloads about half of the count of the visible images.

    Regards,
    Miroslav Nedyalkov
  3. DevCraft banner
  4. Eugeniy Tunikov
    Eugeniy Tunikov avatar
    8 posts
    Member since:
    Mar 2010

    Posted 18 Mar 2010 Link to this post

    I have about 30 images about 4mb per image. The browser takes over 1gb of ram when i view it in taskmanager, processes when i view these images and some of images are not even shown. It shows default image with red cross.  Is coverflow bad solution for such big images or am i doing something wrong?

    Here is how i load images:
     while (reader.Read()){                            
     
                              imagesCollection.Add(imageurl + imageName); 
                        } 
                        this.coverFlow.ItemsSource = imagesCollection;

    imagesCollection is a ObservableCollection<string> which holds url's to these big pictures.
    And here is XAML
    <telerikNavigation:RadCoverFlow  x:Name="coverFlow"  IsReflectionEnabled="False" CameraViewpoint="Bottom" ItemScale="0.5" OffsetY="0" Width="1280" Height="720" Margin="0,-5,0,5" HorizontalAlignment="Center"
                    <telerikNavigation:RadCoverFlow.ItemTemplate> 
                        <DataTemplate> 
                            <Image Source="{Binding}" MaxHeight="400" MouseLeftButtonUp="Image_MouseLeftButtonUp" Stretch="Uniform" VerticalAlignment="Bottom" 
                                telerikNavigation:RadCoverFlow.EnableLoadNotification="True" />                         
                        </DataTemplate> 
                    </telerikNavigation:RadCoverFlow.ItemTemplate> 
                </telerikNavigation:RadCoverFlow> 




    Thanks
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 19 Mar 2010 Link to this post

    Hello Eugeniy,

    The large amount of used RAM could be a browser issue. Try replacing RadCoverFlow with a standard ListBox and see what's happening. Generally, our control is not much more than a ListBox with a special ItemsPanel that adds projection transformations to the items.

    Best wishes,
    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.
Back to Top