Forum
17:16
14/10/2008
This works ...
loadComplete: function() {
$.each(colNames2, function(i,k) { $("#"+ctab).setCell("0", k, "", {'font-weight':'bold'}); });
}
But this …
loadComplete: setBold(ctab, colNames1)
function setBold(grd, nameArr) {
$.each(nameArr, function(i,k) { $("#"+grd).setCell("0", k, "", {'font-weight':'bold'}); });
};
fails because the $t.grid object doesn't exist in the setCell function. Is there a way to get this setBold function to work?
17:27
25/10/2008
In your case, you need to do an anonymous function, like this:
setBold(ctab, colNames1);
}
That should for you, however on the same function - my function is failing, and I don't know why:
'loadComplete': function() {
var row_ids = jQuery("#campaigns-list").getDataIDs();
jQuery.each(row_ids, function(i, row_id){
var output = [];
output.push('<a href="#" rel="'+row_id+'" class="campaign-button-edit">edit</a>');
output.push('<a href="#" rel="'+row_id+'" class="campaign-button-delete">delete</a>');
jQuery("#campaigns-list").setRowData(row_id, {
'actions':output.join('')
}
);
});
}
In my function I can see the row_id when i output it to firebug, however nothing appears in the column, except the column header - and I only get 5 columns back, when I should be getting 6 (the actions being missing).
Any ideas folks?
Most Users Ever Online: 715
Currently Online:
61 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66