|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
How to use tooltip to display Grid control related cell value. when the mouse cursor move to that cell
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The Grid does not provide any built-in support for tooltip. If you already have code that can shows tooltip, you can handle the Grid's ClientSideOnCellOver to trigger your tooltip code. Inside the handler you can get the cell below the cursor and construct your tooltip text based on the cell.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
would you help to solve the error message :
"Microsoft JScript runtime error: 'null' is null or not an object "
when I run the following Javascript:
function ClientSideOncellover(grid) { var cell = grid.getSelectedCell(); var col = cell.getColIndex(); var row = cell.getItemIndex();
PageMethods.cell_selected(col, row) }
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The cell that's below the mouse and the current selected cell are two totally different things. You would call getSelectedCell to get the selected cell; However the cell that's currently below the mouse is directly passed to you your handler through the second argument. Please see the reference for ClientSideOnCellOver property for more details.
Thanks!
|
|