I'm in a project where I'm replacing our silverlight image viewer with the RadImageEditor. I can get images to display but the first time I hit the page there is a very long (5-10 second) delay before the image first appears. Now if I hard code the imageurl to a particular file then it's nearly instant. But I am using the technique of handling the OnImageLoading event and manually setting the EditableImage to the image editor. I do this because I have a grid with rows and each grid selection causes the image editor to display a different preview.
Once the first image gets displayed, all subsequent image changes are nearly instant. Is there something I'm doing wrong that is causing the 5-10 second delay on first time page load? In debug the event gets fired and processed right away but it doesn't get displayed right away. Just default image editor settings, nothing specific.
In short this is what I'm doing:
The image editor is in an UpdatePanel set to conditional and all defaults:
Any advice? The silverlight viewer displays my image immediately and the customer won't accept a 5-10 second delay on first load.
Once the first image gets displayed, all subsequent image changes are nearly instant. Is there something I'm doing wrong that is causing the 5-10 second delay on first time page load? In debug the event gets fired and processed right away but it doesn't get displayed right away. Just default image editor settings, nothing specific.
In short this is what I'm doing:
private void DisplayFax()
{
faxImage.ImageUrl = GetRandom();
}
protected void faxImage_OnImageLoading(object sender, ImageEditorLoadingEventArgs e)
{
EditableImage img = new EditableImage(GetMemoryStreamOfFile());
e.Image = img;
e.Cancel = true;
}
The image editor is in an UpdatePanel set to conditional and all defaults:
<
asp:UpdatePanel
ID
=
"previewFaxUpdatePanel"
runat
=
"server"
UpdateMode
=
"Conditional"
RenderMode
=
"Inline"
>
<
ContentTemplate
>
<
telerik:RadImageEditor
ID
=
"faxImage"
OnImageLoading
=
"faxImage_OnImageLoading"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
Skin
=
"Windows7"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
Any advice? The silverlight viewer displays my image immediately and the customer won't accept a 5-10 second delay on first load.