LEADTOOLS WebForms and AJAX (Leadtools.Web assembly)
LEAD Technologies, Inc

ViewerID Property (WebThumbnailViewer)






Gets or sets the ID of the WebImageViewer used to display the selected thumbnail.
Syntax
public string ViewerID {get; set;}
'Declaration
 
Public Property ViewerID As String
'Usage
 
Dim instance As WebThumbnailViewer
Dim value As String
 
instance.ViewerID = value
 
value = instance.ViewerID
public string ViewerID {get; set;}
 get_ViewerID();
set_ViewerID(value);
public:
property String^ ViewerID {
   String^ get();
   void set (    String^ value);
}

Property Value

The ID of the WebImageViewer used to display the selected thumbnail.
Remarks

You can connect a WebImageViewer control to the WebThumbnailViewer control by setting this property to the required Viewer ID. After that any changes to the WebImageViewer's image will be reflected automatically in the selected thumbnail and any selected thumbnail's image will be loaded into the WebImageViewer control.

If this property is not set to a WebImageViewer ID you have to update the WebImageViewer control manually if the SelectedIndex property changes. Do this by handling the javascript version of the SelectedIndexChanged event and calling the javascript version of the OpenImageUrl(String) method. Also you will be responsible for updating the selected thumbnail image, if the image loaded in the WebImageViewer changes by an image processing command being applied to it. Do that by handling the javascript event Leadtools.Web.Controls.WebImageViewer.ImageChanged and calling the javascript method Update and passing the ID of the WebImageViewer that has had its image changed.

For more information refer to the tutorial, Updating WebControls Manually

Example
Refer to Add(String,Int32,Int32)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WebThumbnailViewer Class
WebThumbnailViewer Members
WebThumbnailViewer Client Class
Updating WebControls Manually.

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.