Forum
03:58
Moderators
30/10/2007
Hello,
Not sure what you mean - do you mean only for the headers or for both headers and rows
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
For rows especially Tony, for example I have a list of contacts with their phone numbers and want to style the phne number column based on a class. Maybe something like:
{name: 'Phone', index: 'Phone', edittype: { classes: ['blurMe','smallFont','blueMe'] }
]
or maybe the formatter with a custom format function will suffice:
colModel:[
{name: 'Phone', index: 'Phone', formatter: {'classes: ['blurMe','smallFont','blueMe'] } }
]
with the fmatter:
var op = $.extend({},opts.classes);
if(!isUndefined(opts.colModel.formatoptions)) {
op = $.extend({},op,opts.colModel.formatoptions);
}
if(isEmpty(cellval)) {
cellval = op.defaultValue || 0;
}
$(op.classes).each(function(){
$(el).addClass(this);
}
};
02:58
Moderators
30/10/2007
Hello,
Thanks.
What about to define this in formatoptions, but in this case we should define formatter. Will think about this.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
50 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