Forum



08:51

Moderators
30/10/2007

Hello,
I recommend you to look at documentaion - jqGrid methods.
There is a special method for this purpose.
Regards
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.
16:39

02/05/2013

tony said:
Hello,
I recommend you to look at documentaion - jqGrid methods.
There is a special method for this purpose.
Regards
Thank you Tony. BTW - great product. Slick & fast.
The method you refer to - is it the setLabel method? (That is what I meant to put in my initial post). If so, I haven't (yet) found examples of setting it (syntax required, etc).
If not, which method are you referring to?
18:05

Moderators
30/10/2007

Hello,
I mean the same method. But, why do you not try it?
Trying this will lost you a minute and is not painful
Regards
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.
18:33

02/05/2013

I mean the same method. But, why do you not try it?
Trying this will lost you a minute and is not painful
I'm not objecting to trying it - in fact, I already have. Without an example of how it can be used, I'm just guessing.
I've tried:
$("#myGrid").setLabel("Destination","Destination",{"font":"bold"});
$("#myGrid").setLabel("Send Time","Send Time",{"font":"bold"});
but it bolds the first one (in IE only) & doesn't bold the second one. In firefox, none are bold.
I have this in the loadComplete event function, where I alternate the colors of the rows (which sort of works - even though I have "odd" selected, row # 2,4,6,8 are the ones that are numbered).
Using jqGrid 4.5.2 also.
Does colname in the setLabel method need to match what is specified in the colNames array? Or does it need to match the name field in the colModel array?
Can it be in the loadComplete event, or should it reside elsewhere?
My apologies for being thick.
Thanks!
19:26

Moderators
30/10/2007

Hello,
Ok. It seems the docs are not clear ( I have fixed this). With colName we mean name from colModel.
The method can be put in loadComplete or it will work after the grid is created an put it wher you want.
Note that this method work for the label of the grid header and not for the rows.
Regards
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.
20:21

02/05/2013

Ok. It seems the docs are not clear ( I have fixed this). With colName we mean name from colModel.
The method can be put in loadComplete or it will work after the grid is created an put it wher you want.
Note that this method work for the label of the grid header and not for the rows.
Thank you for clarifying things in the docs & eliminating some of the (bad) guesswork on my part!
Most Users Ever Online: 715
Currently Online:
47 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