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
Can never access content of second row in grid
25/03/2009
21:12
Avatar
allexx
Member
Members
Forum Posts: 3
Member Since:
09/02/2009
sp_UserOfflineSmall Offline

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

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

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

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.

26/03/2009
19:59
Avatar
allexx
Member
Members
Forum Posts: 3
Member Since:
09/02/2009
sp_UserOfflineSmall Offline

Tony,

Thank you for your quick response and a great product. Yes, you were correct, I checked my starting row index and it was starting at zero instead of 1.

Thanks again,

Alex.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information