Welcome Guest Search | Active Topics | Sign In | Register

How to use tooltip in Grid control Options
Luke
Posted: Wednesday, November 24, 2010 10:05:16 AM
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
eo_support
Posted: Wednesday, November 24, 2010 11:16:30 AM
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!
Luke
Posted: Monday, November 29, 2010 11:52:00 AM
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

eo_support
Posted: Monday, November 29, 2010 2:07:31 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.