EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: federico on December 21, 2020, 03:48:42 PM



Title: grid link to another page...
Post by: federico on December 21, 2020, 03:48:42 PM
Hi I would like after a click event upon  a grid column
to load a form passing the value of the item

something like this

<div data-options="disabled:false"><a style="text-decoration:none;" href="appl.exe?MK-KEY=2020122123415297" class="easyui-menulink"> item1 aree</a></div>

Any way to do that ? (also without easyui-menulink item.. i posted these lines just to give you an idea..)

thanks
Federico


Title: Re: grid link to another page...
Post by: jarry on December 24, 2020, 07:28:49 AM
Do you want to format a link on a cell? If so please try this code.
Code:
<th data-options="field:'productid',width:100,  
    formatter:function(value){
        return '<a href=\'appl.exe\' target=\'_blank\'>'+value+'</a>';
    }
">Product</th>


Title: Re: grid link to another page...
Post by: federico on December 25, 2020, 05:15:50 AM
Yes I want to have a link for each items added with several <td> this seems a good solution. thanks again
and
Merry Christmas

Federico