PDA

View Full Version : tip message change



prakashkadakol
10 Feb 2012, 2:21 AM
I am trying to set 2 different tool tip message for 2 cells of single column,but on run time single tip message will be applied that is if am clicking on cell with respect to condition of if clause then same tip message will be forwarded to rest of the cells,if i navigate from 1 st cell to 2 cell message will not change 1 st cell message will carry forwards and vise versa if i move from 2nd cell to 1 cell 2nd tip message will remain same for rest of the cells.



celldblclick : function(grid, rowIndex, columnIndex, e) {
var ed = grid.getColumnModel().getCellEditor(columnIndex,rowIndex) || {};

ed = ed.field || {};

if (rowIndex == 0 && columnIndex == 2) {
ed.qtipText="SAMPLE1";
} else {
ed.qtipText="SAMPLE2222222222";
}
}

mitchellsimoens
10 Feb 2012, 4:40 AM
Does your method fire when you go to the next cell? Just setting the property may not be enough to have it be set. If there is a set method you should use that.

prakashkadakol
11 Feb 2012, 8:00 PM
Yes its firing onclick of every cell i have used doubleclick and beforeedit events but once qtip message is set its not changing.could you please tell me how to add setmethod