I have colmodel in jqgrid which has 'name' and 'description' columns and i need to show the description as tooltip while hovering over the 'name' column.
Say i have this model for eg :
colModel: [
{
name: "name",..
cellattr: function (rowId, val, rawObject, cm, rdata) {
return 'title=' + rawObject[1];
}
},
{name : "description",..},
],
the data is rendered as tooltip but if i have description as "Low Level Standard" , the tooltip is "Low".
Ideally it ignores all text after white space.
How do i fix this? I am new to jqGrid. Pls explain in detail if possible Thanks