Forum


07:00

Moderators
30/10/2007

Hello
Use afterInsertRow (or loadComlete) with setCell method . With setCell method you can set a class.
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.
02:26

Moderators
30/10/2007

Hello,
Yes this is IMHO the right way. Do not forget to enclose this in
CDATA section. See examples.
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.
04:27

01/11/2008

Although I didn't got this to work, I don't think it can be just a simple css tweak. My skills are realy limited, however I could identify where in the grid.css the table headings (all of them) are aligned and just changed it.
The result wasn't pretty though, as jqGrid reserves space on the heading for the sorting controls so that have to be accounted for... eg perhaps they should revert to the left if right alignment is chosen... And centering the headings looked plain ugly (and not centered with regards to the column borders...)
06:59

Moderators
30/10/2007

Hello,
I recomend first to read the docs. You can use setLabel method for
this purpose. There is example in the example page
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.
03:41

01/11/2008

Thanks Tony.
I was actually expecting something like the colModel structure for the labels, hence I didn't look at the methods thoroughly.
However, still isn't what I expected…
full size image: http://img208.imageshack.us/im.....ridei1.jpg[Image Can Not Be Found]
'Points' column is right aligned and 'Villages' should be centered.
I think the width of the control for resizing the windows isn't taken into acount for centering, while for right aligning… hmm…
But I guess I can live with this
02:20

Moderators
30/10/2007

Hello,
The reason for this is that the properties are applied to the
th element and not to div element which is whitin th.
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.
14:59

23/03/2009

Hi!
How can i add custom id, class to table and rows. How can i creat it with JSON?
"while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { $responce->rows[$i]['id']=$row[id]; $responce->rows[$i]['cell']=array($row[id],$row[invdate],$row[name],$row[amount],$row[tax],$row[total],$row[note]); $i++; }"
$responce->rows[$i]['class'] = ?
array(array($data, 'id' =>'rowid', 'class' => 'rowclass')), $row[invdate],$row[name]
Or, do i have to convert a html table, but how can i add after it custom function like cell edit, tablsesorter, etc.
THX!
02:55

Moderators
30/10/2007

Hello,
The answer is just above and in this forum. You just need to read and use find button in the forum. This topic is discussed many times.
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:
24 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