Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WebImageViewer inside of WARP loses images on async postback
posted

I have a WebImageViewer control inside of a WARP panel inside of a splitter pane.  I have the image viewer wired to handle the OnSelectedIndexChanged event, but when this event fires the images are removed from the viewer.  Is there some setting I need to set on the image viewer to allow it to persist the image data between async postbacks?

Here is the markup:

<

 

ig:WebSplitter ID="split_PageLayout" runat="server" Width="995px" Height="476px">

<Panes>

 

 

 

<ig:SplitterPane runat="server" BackColor="White" Size="250px" CollapsedDirection="NextPane">

 

 

<Template>

 

 

</Template>

 

 

</ig:SplitterPane>

 

 

<ig:SplitterPane runat="server" BackColor="White" Size="750px">

 

 

<Template>

 

 

<igmisc:WebAsyncRefreshPanel ID="pnl_Files" runat="server" LinkedRefreshControlID="pnl_Folders">

 

 

<ig:WebImageViewer ID="ivw_GalleryThumbViewer" runat="server" Width="100%" ScrollAnimations-Type="NextItem" OnSelectedIndexChanged="ivw_GalleryThumbViewer_SelectedIndexChanged">

 

 

</ig:WebImageViewer>

 

 

</igmisc:WebAsyncRefreshPanel>

 

 

</Template>

 

 

</ig:SplitterPane>

 

 

</Panes>

 

 

</ig:WebSplitter>

Here is the code behind:

protected

 

void Page_Load(object sender, EventArgs e)

{

// Load ImageItems into Image Viewer using custom Data Access Layer

}

 

 

 

protected

 

void ivw_GalleryThumbViewer_SelectedIndexChanged(object sender, ImageItemEventArgs e) {  }