jaime.chavarriaga
Joined: 03 Jan 2007 Posts: 1
|
Posted: Thu Jan 04, 2007 12:17 am Post subject: Error with Event in Grid v3.4 and v3.41 |
|
|
The onCellFocusEvent for the grid component in the versions 3.4x is sending the wrong parameter to the handler
in the Grid v.3.23, when the event is fired, the function receives a Javascript Object (nitobi.components.grid.OnCellFocusEventArgs), and you can use this object to get information about the selected cell.
In the newer versions, v3.4 and 3.41, the function wrongly receives a reference to the HTML object for the TD tag in the table.
for example, if you use code like this...
| Code: |
:
var OnSelection = function (event) {
alert(event);
}
grid.setOnCellFocusEvent(OnSelection);
|
in the 3.23, you receive an "[object Object]" alert... in the newer versions, you receive an "[object HTMLTableCellElement]" alert.
This error broke our application... and we are not able to use the newer functionalities. (May be in the future versions you can distribute the components in different files, for example, to use the new toolbar with the old grid). |
|