gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

how to create hyperlink on grid column #889

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i want create on link on ID Column When i click on that link it will call 
action and load data from passed Id in another form 

so  i am using formater in coloum it call function
function nameFormatter(cellvalue,options,row) { 
    return '<a href="/abc/hello?id='+ cellvalue+'/>;
}

What steps will reproduce the problem?
1.when i am using this url will genrate like 
http://localhost:8080/abc/hello?id=002>kkkkfhgfhgf</a>

What is the expected output? What do you see instead?
1.http://localhost:8080/abc/hello?id=002

Which struts2 version?
Struts 2.3

Which struts2-jquery plugin version?
Struts jquery grid 3.3.3
Struts jquery plugin 3.3.3

Please provide any additional information below.

all this i want to load using aJax for that i m using jquery struts plugin..but 
i m gettting problem

i want to create a link on Jquery Grid Column so please how i will create and 
pass the parameter in that

Original issue reported on code.google.com by pramod1...@gmail.com on 14 Sep 2012 at 7:02

GoogleCodeExporter commented 9 years ago
With formatters. See Wiki Page 

http://code.google.com/p/struts2-jquery/wiki/FormatGrid

and jqgrid wiki

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:predefined_formatter

In this Use case you can write a custome formatter or try to use the built in 
showlink formatter.

Original comment by johgep on 14 Sep 2012 at 3:16