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_Related Related Topics sp_TopicIcon
dynamic link change, based on column value in jqgrid
06/07/2010
09:01
Avatar
mdsoneta
New Member
Members
Forum Posts: 2
Member Since:
06/07/2010
sp_UserOfflineSmall Offline

Hello everyone:

I'm new to jquery and trying to implement jquery for one of my project.  I would like to get help for one of my requirement.

Here is where I am facing problem.

I have 3 columns in grid  as , firstname, lastname and status. The value of status is either 'Y' or 'N' ( active or Not active ) and I have to create a link based on that. The link for 'Y' would be something 'enableUser' the and for 'N' would be disableUser .  I have used formatter 'showlink ' and formatOptions : baselinkUrl and Idname before but my values are going to be dynamic and I dont know how to change the link based on the values.

Can someone please guide me on that. Please reply to the earliest as my deadlines is very close.

THank you.

06/07/2010
19:14
Avatar
mdsoneta
New Member
Members
Forum Posts: 2
Member Since:
06/07/2010
sp_UserOfflineSmall Offline

can some please have their idea on how to do that...

08/07/2010
02:37
Avatar
michaelg
Member
Members
Forum Posts: 51
Member Since:
10/04/2010
sp_UserOfflineSmall Offline

Hi mdsoneta,

You can use a custom formatter and spit out the html for an <a href="... etc. depending on the value Y or N

Cheers,

Michael

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

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