Hello Mathieu
I fixed it
just update your rialto.js file
By the way you made a little mistake.
The first parameter is the line index that start from 0
So it must be in your example
g.setCellToolTipText(0,1,"enter an alpha coordinate");
g.setCellToolTipText(0,2,"enter a delta coordinate");
Cyril
--- In
rialto-dev@..., "mathieu.cier" <mathieu.cier@...>
wrote:
>
> hello,
>
> I can't affect my own tooltip text to grid's cells.
> my code is:
>
> var g = new rialto.widget.Grid({top:5, left: 5, height: '100%',
> position: 'absolute',
> arrHeader: [ {title: "A", type: "string", width: 40},
> {title: "B", type: "string", width: 80},
> {title: "C", type: "string", width: 55},
> {title: "D", type: "string", width: 85}],
> name: 'mygrid', parent: document.body, navigationMode:
> false,cellActive:false, sortable:true, multiSelect: true,
> lineHeight:16,boolPrint:true, withContextualMenu: true, switchable:
> false, clickable:true, autoResizableW: false, writable: true,
> asynchLoad:false});
>
> var l=g.addOneLine(["5", "numero 5", "blabla", "et blablabla"]);
> g.setCellToolTipText(l,1,"enter an alpha coordinate");
> g.setCellToolTipText(l,2,"enter a delta coordinate");
>
> and each tooltip equals the cell's value itself...
>
> Mathieu
>