OnClickSpan event


Happens when the user click on a text or image or boolean box in the grid body.

   Sintax

function OnClickSpan ( ele , dataField , value , rowIndex , colIndex )


   Parameters

ele Object which represent the element (TEXT,IMG,CHECKBOX) upon the user has clicked.
dataField String with the name of the data-field associated to the value on which the user has clicked.
value Field with the value on which the user has clicked.
rowIndex Number with the index of the row on which the event happens.
colIndex Number with the index of the column on which the event happens.


Example

This example shows the OnClickSpan function for the Cars table.

function OnClickSpan(ele,dataField,value,rowIndex,colIndex) {
	if (dataField=="img_url" && !Cars.filterVisible) {
		var h=400;
		var w=700;
		win=window.open("large/"+value,null,"width="+w+", height="+h+", copyhistory=no, toolbar=no, location=no, menubar=no, status=no, scrollbars=no, resizable=no, top="
		+(screen.height-h)/2+", left="+(screen.width-w)/2);
		win.focus();
	}
}