Forum
21:12
09/02/2009
When trying to display the content of a single cell for each row in a grid, the second row is always ignored and cannot be accessed.
colModel:[{name:'symbol', index:'symbol', width:50},
{name:'last', width:50, sortable:false, align:'right'},
{name:'change', width:50, sortable:false, align:'right'},
{name:'bid', width:50, sortable:false, align:'right'},
{name:'offer', width:50, sortable:false, align:'right'},
{name:'open', width:50, sortable:false, align:'right'},
{name:'high', width:50, sortable:false, align:'right'},
{name:'low', width:50, sortable:false, align:'right'},
{name:'filler', width:11, sortable:false}],
alert(jQuery("#gridID").getCell(1,"symbol"));
alert(jQuery("#gridID").getCell(2,"symbol"));
alert(jQuery("#gridID").getCell(3,"symbol"));
The first alert correctly displays the content of the symbol field in row 1.
The second alert skips over row 2 and displays the content of symbol field in row 3.
The third alert displays content of symbol field in row 4 etc...
02:42
Moderators
30/10/2007
Hello,
How are the ids of the rows in the grid? Is your rows like this
<tr id="1"...></tr>
<tr id="2"...></tr>
<tr id="3"...></tr>
Remember - you should understand that this is row id and not row index - this is quite different.
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:
35 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