DisplayBox.removeColumnImage

Availability

Flash Player 7.

Usage

DisplayBox.removeColumnImage(ColumnID,ImageName)

Parameters

ColumnID The ID of the column header you want to remove an image for.

ImageName The name identifier you assigned to the image on the specified column header when you added the image using DisplayBox.addColumnImage().

Returns

None.

Description

Function; Removes the specified image associated with the specified column header.

Example

In this example, we add a new row and image. When the user clicks on the image, the ColumnImageClick Event is fired passing back which column header and the name of the image that was clicked. We can now modify the image on the header to change the sort direction and call a sorting function. The negative 10 will result in the image being 10 pixels from the end of the column.

myDisplayBox.ColumnImageClick=function(ID,ImageName) 
{ var SortDir;
myDisplayBox.removeColumnImage(ID,ImageName);
if (ImageName==”Up”)
{
SortDir="Down;
}
else
{
SortDir="Up";
} myDisplayBox.addColumnImage(ID,SortDir,"imgSort"+SortDir,-10,0,true,"Click here to reverse your sort");
} myDisplayBox.addItemImage(ID,"Up","imgSortUp",-10,0,true,"Click here to reverse your sort");
Author

Telsim, Inc.