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
duplicate row id in tree grid
13/08/2010
17:54
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

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);

                    var st = '#t' + person.SaleId;
                    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); }
                            }  
                        ); 
                    }
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
22 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