var salesRenderer = function (row, datafield, value) {
return “< a on-Click= >sales”;
};
var customersListDataFields = [
{ name: ‘CustomerId’ },
{ name: ‘CustomerName’ }];
var customersListColumnDefs = [
{ text: ‘Customer Name’, datafield: ‘CustomerName’, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ },
{ text: ‘Voice’, cellsrenderer: salesRenderer, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ }
];
var showSales = function (s) {
$(s).qtip({
content: {
text: ‘Loading…’, // The text to use whilst the AJAX request is loading
ajax: {
url: ‘/customers/showcustomertooltipcontentfromserver’, // URL to the local file
type: ‘GET’, // POST or GET
data: {} // Data to pass along with your request
}
}
});
$(s).qtip(‘toggle’, true);
};