ImageGear for .NET
ThumbnailView Class
See Also  Members   Send comments on this topic.
ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace : ThumbnailView Class

Glossary Item Box

This is an ASP.NET client control for viewing thumbnails.

Syntax

ASP.NET Ajax Javascript (Specification) 
ImageGear.Web.UI.ThumbnailView = function() {};
ASP.NET Ajax Javascript (Usage) 
var instanceVar = new ImageGear.Web.UI.ThumbnailView();

Remarks

This ASP.NET client control is a thumbnail viewer. This control represents a single thumbnail, so in normal applications, you will need to have one ThumbnailView control on your page for each thumbnail you wish to display.

While it is possible to create an instance of this control using client-side JavaScript, you will normally create it by placing a server-side ThumbnailView control on an aspx page. If you wish to create an instance of this control using client-side JavaScript, take the following steps:

  • Add an empty <DIV> to your HTML.
  • Give your <DIV> a unique ID (Example:ThumbnailView1).
  • Give your <DIV> a size, using either a CSS style sheet or an inline style. If your thumbnails will be arranged in a single column, set the width to 100% and the height to a size in pixels. If your thumbnails will be arranged in a grid, set both the width and height to a size in pixels.
  • If using Microsft Ajax library, add the following code to your page.
        
    $create(ImageGear.Web.UI.ThumbnailView,{ imageHandlerUrl: "ImageGearService.svc" }, null, null, $get("ThumbnailView1"));
    
  • If using ImageGear jQuery Plugins, add the following code to your page.
        
    $("#ThumbnailView1").ImGearThumbnailViewPlugin({ imageHandlerUrl: "ImageGearService.svc" });
    

Inheritance Hierarchy

Object
   Sys.Component
      Sys.UI.Control
         ImageGear.Web.UI.ThumbnailView

See Also

©2013. Accusoft Corporation. All Rights Reserved.