CHAN Reference

Chan Home | Reference Home | Event Firing Order | web.config

   

Controls.ImagePanel

     
  • Name ImagePanel
  • CSS Class Div : "CC_ImagePanel", Child Images: "CC_Image", Curretly Selected Image: "CC_Image Selected"
  • Type Controls.Image

The ImagePanel allows you to group a collection of Images, either declared inline in the ASPX as Chan Images or added via one of the Add() method overloads. It's base uses include showing a selection of images to the user and automatic image-gallery creation.

Development versions of the ImagePanel have Javascript scrolling, and can even be styled as a DropDown selecter or a slideshow, as well as dedicated javascript objects to manipulate and hook to. For now the Panel merely shows its child images in an (optionally) overflowed DIV whilst exposing the Target property and CSS styling the selected image.

Like the Chan DropDown the ImagePanel does not hold its state across PostBacks, meaning you will usually have to populate it during Page_Init(), despite this it contains a suite of addition, removal and move functions.

Roadmap

  • Impliment scrolling
  • Proper server and client side object model, nice JS API would be good too.