开发者

show multiple showlink in jqgrid in single cell

开发者 https://www.devze.com 2023-01-27 13:37 出处:网络
Hi I have developed the jqgrid in my mvc web application by using jqueryin .net. I am able to show hyperlink to call action from controller. But My form has some download links. how to configure downl

Hi I have developed the jqgrid in my mvc web application by using jquery in .net. I am able to show hyperlink to call action from controller. But My form has some download links. how to configure download link and show multiple download link in single cell ? these links are in variable in numbers so can not keep columns开发者_JAVA百科 for each link. so best way to put all links in single cell. I am using C# as code behind.


You can use Custom Formatter to create two links in one cell. The implementation could be a little different depend on the form in which you return the data to the jqGrid from the server (depend on j). The third parameter of the custom formatter rowObject contain the data of the row in the for in which you send it from the server.

In some situation you will be need to define Custom Unformatter also which are used to get the data back from the formatting cell. For example if you allow sorting of the column (if you don't use sortable:false) the data from the custom formatted column must be read and compared. In the case Custom Unformatter is needed.

If you will have problem with the implementation you should append your question with more information,

0

精彩评论

暂无评论...
验证码 换一张
取 消