简体   繁体   中英

Bind another CELL value into the Showlink option in Jqgrid

I have two values in my table where i store FormName and FormPath.

Ex: FormName will contains the "Click For New Version" FormPath will contains the "../Attachments/pdf/Forms/pressForm.pdf"

So In my Jqgrid i have to show one column that will show the text as FormName and the HREF URL as FormPath.

So how to achieve this.

Thanks in advance,

i have found a way to do this like.

  { name: 'FormPath', index: 'FormPath', editable: true, formatter: GetFormURL } 

  function GetFormURL(cellvalue, options, rowObject) { debugger; return '<a href="' + cellvalue + '">' + rowObject.Category + '</a>'; //return '<img src="' + cellvalue + '" />'; } 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM