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 add the dynamic link param
18/11/2009
00:08
Avatar
Ryan
Guest
Guests

colModel:[

{name:'tid',index:'tid', width:50},

{name:'post_title',index:'post_title', width:300, formatter:'html'},

//{name:'post_subject',index:'post_subject', width:300, formatter:'showlink',formatoptions:{baseLinkUrl:'test.php',idName:'t',addParam:'&f=38'}},

{name:'module',index:'module', width:50,sortable:false},

{name:'post_time',index:'post_time', width:120,align:"center"},

],

Now I want to generate the link like: http://localhost/test.php?t=23&f={module}
the value of "module" was from XML 
How to do that? thanks
19/11/2009
06:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Maybe you should use a custom formatter and use the third parameter which is the actual row data.

Look here:

http://www.trirand.com/jqgridw....._formatter

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.

25/04/2010
11:26
Avatar
Candrairawan78
Indonesia
Member
Members
Forum Posts: 39
Member Since:
30/01/2010
sp_UserOfflineSmall Offline

Hi there,

I made linkable row to show a chart with showlink formatter.

It shows Chart.phpshow?id=null, I want to change to Chart.php?id=B86300-BZ010, where B86300-BZ010 is row id value. What should I do to erase the show and fill the id ?

If i used link formatter, it will direct link to B86300-BZ010.

Could you help me please,

Candra

26/04/2010
15:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

set showAction to empty string. It seems like you use a very old language file.

formatoptions:{baseLinkUrl:'test.php',idName:'t',addParam:'&f=38', showAction:""}},

Also which version of the grid is used?

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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