Forum


06:37

23/03/2009

How can i make a table like this(JSON, XML, etc., some solution)
The classes, ids come from mysql, and i dont wanna import a class, id list too after i load table data.
<table class="tbl1" id="tbl1">
<tbody>
<tr class="handcur even" id="toro0">
<td class="toro">TorCAT STOP</td>
<td class="nokedv" id="tork1">gfgfgfgff</td>
<td class="netto">17140</td>
<td class="brutto">20568</td>
</tr>
<tr class="handcur odd" id="toro1">
<td class="toro3">TorEXT</td>
<td class="kedv" id="tork2">gfgfgfgff</td>
<td class="netto2">12140</td>
<td class="brutto4">17568</td>
</tr>
</tbody>
thanks!
04:02

Moderators
30/10/2007

Hello,
Use afterInsertRow event (imediate adding of the class) or gridComplete event to attach a class something like this: (Suppose you have grid with mygrid id)
gridComplete: function (){
$("tr","#mygrid").each(function(){
$(this).addClass("myclass");
});
Hope this help
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:50

Moderators
30/10/2007

Hello,
As mentioted in my previous post currently there is a no way to add classes direct from server response. You should use java script at client side. I consider this to be added in 3.5 release.
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:
45 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