This is a migrated thread and some comments may be shown as answers.

Large number of images

3 Answers 62 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Eamonn Dunne
Top achievements
Rank 1
Eamonn Dunne asked on 26 Mar 2009, 06:03 PM
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!

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 27 Mar 2009, 06:57 AM
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
0
Eugeniy Tunikov
Top achievements
Rank 1
answered on 18 Mar 2010, 01:44 PM
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
0
Valeri Hristov
Telerik team
answered on 19 Mar 2010, 01:31 PM
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.
Tags
CoverFlow
Asked by
Eamonn Dunne
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Eugeniy Tunikov
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or