Forum


17:54

06/02/2010

Hi,
I got a duplicate row id in my tree grid. Here is the tree:
Andy (root with row id of 1 in Firebug)
------- James (direct child of Quyen with row id of 2 in Firebug)
------------- Kevin (direct child of Viet with row id of 1 in Firebug)
Since Andy and Kevin have the same row id, my following code pulls Andy's info from the server instead of Kevin's when I click on Kevin's row.
jqGrid automatically creates row id when you feed data to the grid as xml, which is the data format I feed. So, there is no chance the duplicate row ids are caused by my data. I also tried feeding data as json, but it does not even work as I posted here (http://www.trirand.com/blog/?p.....38;ret=all)
Any pointer to a solution/workaround is greatly appreciated. Thanks.
onSelectRow: function(rowid)
{
var person = $('#hier').jqGrid('getRowData', rowid);
if($(st).html() != null)
tabs.tabs('select', st);
else
{
tabs.tabs('add', st, person.Name);
$.ajax
(
{
url: person.Url, <========= e.g: index.php?func=loadinfo&personId=1
type: 'post',
dataType: 'html',
complete : function (req, err) { $(st, '#tabs').append(req.responseText); }
}
);
}
Most Users Ever Online: 715
Currently Online:
43 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