Is it possible have a html link in a column with jqGrid, I can't find any example in the documentation?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Here's the sample colModel configuration from Craig's link to jqGrid formatting help. It specifies the formatter as showLink and the url and params are specified with formatoptions.
in xml I use entity < instead of < in the a tag like this <a href="dest">my link</a> and works fine with jqgrid 3.6
Yes, use a formatter, either a custom formatter or Predefined Formatter.
If you use xml data, you can add a dummy column in your query to display it in the grid
grid:
query:
Sorry to post to an old question, but here is another option that worked for me: simply create a custom formatter and return an anchor tag (a good option if you need really granular control of the link):
Look in the rowdata for the data returned by your query. Hope this helps someone!
within the json data i am using for the grid, i just send html code back with a href tag in, that works for me