Hi
I'm using the webimageviewer to my web application. I take the Selection example from your Samples Browser, work fine. After that, i put the control into a warp panel, the code to populate with the images is:
protected void LlenaSlideShow() {
WebImageViewer1.Items.Clear();
ConsultaAnexosFAC caf = new ConsultaAnexosFAC(); DataSet ds = caf.ListarAnexos("connectionString", ddlCategoria.SelectedValue, txtBuscar.Text, "1"); caf = null; if (ds != null && ds.Tables[0].Rows.Count > 0) { foreach (DataRow dr in ds.Tables[0].Rows) { ImageItem img = new ImageItem(dr["RUT"].ToString() + ".jpg", dr["APELLIDOS"].ToString() + ", " + dr["NOMBRE"].ToString(), dr["APELLIDOS"].ToString() + ", " + dr["NOMBRE"].ToString()); img.Key = dr["RUT"].ToString() + ".jpg"; WebImageViewer1.Items.Add(img); } }
WebImageViewer1.DataBind();
}
i call this method in the Page_Load and still working fine, i call this method from a button control, which is the TriggerControlID to the warp panel. When i click this button, the webimageviewer clear the collection of images, but dont show the new collection.
I hope you can help me
Regards
Rumen, i have work with the same version of Infragistics for ASP.NET 2.0 (8.1), the problem why your code dont work is in the image url, is no image in http://www.google.com , thats ok i fix that, but still not working. So, i change my warp panel for an UpdatePanel, and works great, i click the button and in the postback event adds the pictures to the webimageviewer, any time i click the button adds new images.
In resum, if i want async postbacks wiht a webimageviewer control, i must use an UpdatePanel.
Thanks for your help
Claudio G.
Well, I really have no other suggestions, with maybe the exception of checking WARP panel versions... I am using 2008.1 release for both WebImageViewer and WARP.
You may also try using asp:UpdatePanel and triggers to try the same (if you are running ASP.NET 2.0 / 3.5) - if it works this way, then I guess we will at least have a working solution and will have isolated the problem to be in WARP rather than WebImageViewer.
If none of these suggestions helps, I am afraid the only way to go would be to isolate a small subset of your project reproducing the problem and contact Developer Support for additional help.
Hope this helps.
It's similar to my code, i don't see a diference, the only diference is that i populate the webimageviewer in the page load event. I tried the code you post, and i dont have results.
I am trying to reproduce something similar with the following setup, but unfortunately to no avail. Here is what I've tried:
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" Height="20px" Width="80px" TriggerControlIDs="Button1"> <cc1:WebImageViewer ID="WebImageViewer1" runat="server" Height="20px" Width="500px"> </cc1:WebImageViewer> </igmisc:WebAsyncRefreshPanel> <br /> <br /> <br /> <br /> <asp:Button ID="Button1" runat="server" Text="CallBack" onclick="Button1_Click" />
protected void Button1_Click(object sender, EventArgs e) { WebImageViewer1.Items.Add(new ImageItem("http://www.google.com", "google", "google")); WebImageViewer1.Items.Add(new ImageItem("http://www.google.com", "google", "google")); }
What am I missing? Is there something different in your approach?