将href添加到jquery网格列(jquery和struts2)(Add a href to jquery grid column (jquery and struts2))

编程入门 行业动态 更新时间:2024-10-26 15:26:23
将href添加到jquery网格列(jquery和struts2)(Add a href to jquery grid column (jquery and struts2))

如何在单击行时将href添加到jquery网格列或重定向到新页面? 我正在使用struts2 jquery插件。

这是我的网格列 -

<sjg:gridColumn name="eventName" index="eventName" title="Company" sortable="true" href="/thankyou.jsp" targets="eventSearchResultsDiv"> </sjg:gridColumn>

显示网格时,我无法单击事件名称。

谢谢

How can I add a href to a jquery grid column or redirect to a new page when a row is clicked ? I'm using the struts2 jquery plugin.

Here is my grid column -

<sjg:gridColumn name="eventName" index="eventName" title="Company" sortable="true" href="/thankyou.jsp" targets="eventSearchResultsDiv"> </sjg:gridColumn>

When the grid is displayed I am not able to click the event name.

Thanks

最满意答案

在网格列中使用href时,应使用格式化程序。

在谷歌代码中查看相关的维基页面 。

when using a href in your grid column you should use a formatter.

see related wiki page at google code.

更多推荐

本文发布于:2023-08-06 11:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1448622.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   jquery   href   column   grid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!