Forum


09:56

09/11/2009

I discovered this jquery plugin. Please apologize me for my questions...
1) Which could be the best method for changing the color of field(s) according to diverses criteria ?
the color or the style (bold, italic, ...)
2) How to insert an hyperlink in a field ?
3) How to insert a checkbox or a radio box in a field ?
4) Is it possible to display a photo in a field ?
11:01

Moderators
30/10/2007

Hello,
The answer of all of these quastions can be fiund into the documentation and/or in this forum.
Best 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.
09:15

Moderators
30/10/2007

Hello,
Sorry if this sound so, but you should understand that this is a open source software and before to make some question or post a problem you should first read the documentation and search the forum for such kind of solutuions. If you are "newbe" you should know these things that are common for the open source community.
Believ me I want to help of all users, but I shoud work - I have family and I must pay my bills.
Hope You understand waht I mean.
Best 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:10

Moderators
30/10/2007

Hello,
1. You can use many option for this purpose.
1.1 use the new classes option in colModel to attach class to particular column.
1.2 use setCell method to change the apperianse and data to particular cell
1.3 use setRowData to set some classes to particular row
1.3 For dynamic changing during retrieving of data you can use afterInserRow event
2. You can use the formatter showLink maybe
http://www.trirand.com/jqgridw....._formatter
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.
08:36

09/11/2009

Thank you. For me, even after a read of the documentation, it was not evident.
As I want to change the color when I populate the grid, I think the solution is the afterInserRow event and the setCell method.
…
afterInserRow: function (row,data) {
if (data > value_1 && data < value_2) {
jquery(”#myGrid”).setCell(row, …{color:'red'})
}
BUT
data is undefined for me ! probably because I populate by json.
I changed like this:
afterInserRow: function (row, data, rowelem) {
if (??? > value_1 && ??? < value_2) {
jquery(”#myGrid”).setCell(row, …{color:'red'})
}
rowelem is for me a string of values separated by comma: val1,val2,,val4
I can do rowelem[2] for extracting val2 but it's not elegant !
Is it possible to use the colModel name for extracting ?
10:15

Moderators
30/10/2007

Hello,
Look depper here:
http://www.trirand.com/jqgridw.....iki:events
the data is array, and can not be used your way
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.
10:59

Moderators
30/10/2007

Hello,
Here is the description:
"rowelem is the element from the response. If the data is xml this is the xml element of the row; if the data is json this is array containing all the data for the row"
Is something that is not clear?
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:
51 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