asp.net mvc - Ajax.ActionLink not working MVC -
asp.net mvc - Ajax.ActionLink not working MVC -
i have grid, need add together details column grid , when detail column selected details row should appear below current grid.
my code :
<% html.grid(model.innermodel.statusrecords) .empty("no info available") .attributes(new hash(id => "resultstable")) .columns(column => { column.for(x => ajax.actionlink("details", "batchdetailsbystatus", "reportscontroller", new { statusid = x.status, jobno = model.innermodel.jobnumber }, new ajaxoptions { httpmethod = "get", updatetargetid = "statusbatchdetailsdiv"})).named("details").donotencode(); column.for(x => x.status); column.for(x => x.totalcount).named("count"); }).render(); %> my controller code:
[acceptverbs(httpverbs.get)] public actionresult batchdetailsbystatus(int statusid, string jobno) { var batchmodel = batchbystatus.getbatchdetailsbystatus(statusid, jobno); homecoming partialview("batchdetailsbystatus", batchmodel); } i have partailview batchdetailsbystatus gets required info display.
but when click on details link nil happens, not work.
what missing out.
thanks
replaced reportscontroller reports (controller name without controller) in ajax.actionlink, , worked
asp.net-mvc asp.net-ajax actionlink
Comments
Post a Comment