Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
table with custom id, class?
25/03/2009
06:37
Avatar
MiB
MiB
Member
Members
Forum Posts: 8
Member Since:
23/03/2009
sp_UserOfflineSmall Offline

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!

26/03/2009
04:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

26/03/2009
05:52
Avatar
MiB
MiB
Member
Members
Forum Posts: 8
Member Since:
23/03/2009
sp_UserOfflineSmall Offline

Hi Tony

Do i have to import another list of class,id-s from mysql? Why cant i send all request data(class, id-s) with first JSON load?

Then it look like?:

1: Load JSON //mysql

2: Load class,id-s //mysql

30/03/2009
02:50
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

30/03/2009
05:57
Avatar
MiB
MiB
Member
Members
Forum Posts: 8
Member Since:
23/03/2009
sp_UserOfflineSmall Offline

I think so all user are looking forward this feature.

tony said:

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


Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information