This is a migrated thread and some comments may be shown as answers.

[Solved] Client Templates with anchor

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amitesh
Top achievements
Rank 2
Amitesh asked on 10 Oct 2011, 01:13 AM
columns.Bound(i => i.Id).ClientTemplate(@"<a href=""OpenPdfInvoice/<#=SupplierName#>_<#=InvoiceNumber#>_<#=Id#>"" target=""_blank"" onClick=""UpdatePage(); return true"">View</a>").Encoded(false).Title("")
                        .Width(cookie["Id"] == null ? 60 : int.Parse(cookie["Id"]));

I have had this client template in the grid and it has been working for a long time. There are no changes that I can find in our changes history that would cause this to no longer work. The link was previously rendered

 as http://localhost:55919/unregistereduserpreview/OpenPdfInvoice/AXA_00000285_2188

but now is somehow adding the action method that populates the grid with ajax to the url -

http://localhost:55919/unregistereduserpreview/UnregisteredUserInvoiceSummary/OpenPdfInvoice/AXA_00000285_2188

which of course throws a 404.


Any help would be greatly appreciated,

Toby Holland

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 10 Oct 2011, 08:20 AM
Hi Sam,

Unfortunately, the provided information is not sufficient in order to track the cause for such behavior. Therefore, please provide a small sample in which this issue can be observed locally. This way we will be able to get better understanding about your scenario and provide you with more to-the-point answer.

Regards,
Rosen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Amitesh
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Share this question
or