This event is raised when the user pass with the mouse over the grid fields of type TEXT,IMG o CHECKBOX.
| function OnMouseOverSpan ( ele , dataField , value , rowIndex , colIndex ) |
| 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. |
The example reports the procedure executed when the user pass with the mouse over the data of the fields "Photo", "Miles", "Price" of the "Cars" table.
function OnMouseOverSpan(ele,dataField,value,rowIndex,colIndex) {
if (dataField=="img_url")
ele.title=value;
else if (dataField=="km_string")
if (this.language=="it")
ele.title=Group(Math.round(value/1.609))+" miles";
else
ele.title=Group(Math.round(value*1.609))+" km";
else if (dataField=="price_string")
if (this.language=="it")
ele.title=Group(Math.round(value*conversion_value))+" $";
else
ele.title=Group(Math.round(value/conversion_value))+" €";
}
|