Hi,
i can't get it ...
To start with it is simple. I want just show the "webimage" but it didn't work. What did i wrong?
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ImageList il = new ImageList(); var imageItem = new ImageItem("http://www.espressojoe.de/images/product_images/thumbnail_images/trombetta-classico-neu.jpg", "pic", "ToolTip"); il.Add(imageItem); WebImageViewer1.DataSource = il; WebImageViewer1.DataBind(); } }
and
<ig:WebImageViewer ID="WebImageViewer1" runat="server" Height="150px" Width="500px"> </ig:WebImageViewer>
Hello urit,
I am following up to see if the information provided has resolved this matter.
Please let me know if you have any further questions concerning this matter.
Thank you for contacting Infragistics!
I have looked at your code and the documentation for the WebImageViewer and I believe you are seeing this issue due to the way you are adding items to the WebImageViewer. Instead of adding it to the datasource you will want to add it to the items collection. For example:
WebImageViewer1.Items.Add(new ImageItem("add_down.gif", "", "")); WebImageViewer1.Items.Add(new ImageItem("add_hover.gif", "", ""));
You can also see the following documentation:
http://help.infragistics.com/NetAdvantage/ASPNET/2013.1/CLR4.0/?page=WebImageViewer_Getting_Started_with_the_WebImageViewer.html