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
ASP.NET MVC Html.ActionLink in jqgrid
18/03/2010
18:35
Avatar
maitopoika
Member
Members
Forum Posts: 17
Member Since:
16/03/2010
sp_UserOfflineSmall Offline

I need to add an html.action link in my jqgird. I have a field with an invoice number, I need to make that invoice number be a clickable link that will go to a controller that will just return a different view base on the invoice number as the parameter. How can I add the markup for the actionlink to my gird view? Any thoughts?

18/03/2010
23:44
Avatar
twaldron
Member
Members
Forum Posts: 3
Member Since:
19/03/2010
sp_UserOfflineSmall Offline

An action result will not work for this as far as I know.

The actionResult helper automatically encodes HTML, you don't want this. Other wise you will see the actual html show up as text in the girdview.

You can however just give it a string that has an the html <a> with the hfref set to 'controller/action/id' this should work for you just fine.

i would use the invioce number as your ID, and your text for the link

🙂

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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