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
how to pass additional data to server in treegrid?
13/06/2010
01:37
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

Hi,

I am using auto loading in treeGrid. How do I pass additional info to server beside

   nodeid:rc.id,
n_left:rc.lft,
n_right:rc.rgt,
n_level:rc.level,
when a node is clicked by operators?

This links (http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid#cautions_and_limitations)
also mentions that additional info is needed but does not show me how. Look under "Cautions and Limitations" section.

Correct me if I am wrong but postData does not work either because you have to wait for the row to be clicked before you can
fish out the additional data to be sent to server. Otherwise, you don't have the rowid to begin with.

Thanks.


20/06/2010
10:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Will see how to fix this.

Also just for the record, what kind of additional information do you want to add to the postData?

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.

21/06/2010
19:31
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

Hi Tony,

Thanks Tony. I need to send back to the server the primary key of the record being searched so that I can query the path leading to the record being searched like this:

SELECT parent.name
FROM nested_category AS node,
nested_category AS parent
WHERE node.lft BETWEEN parent.lft AND parent.rgt
AND node.name = 'FLASH'
ORDER BY parent.lft;
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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