Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helper Method:

C#
@helper GetURL()
{
    @Url.MyAction("Step1", "Application", new { applicationid = "#= Applicationid #", type = "ap", title = "#= Applicationid #" }) 
}



Code Inside from kendo Grid:

C#
columns.Bound(a => a.ApplicationNumber).Title(Resources.DTCMResource.ApplicationNo)
            .ClientTemplate("# if(AppStatusId == 1 || AppStatusId == 4) {# <a href='"
           +
       @GetURL().ToHtmlString()

           +
       "'> <pre lang="c#">#= ApplicationNumber
# #} else {# #= ApplicationNumber # #} #");

columns.Bound(Web.Helpers.Extensions.GetHeader("ApplicationPurposeName")).Title(Resources.DTCMResource.ApplicationPurpose);


Variable Passing Value Like:

#= ApplicationNumber

What I have tried:

Once calling the @helper method from inside the kendo grid it's not passing the actual value, in place of it's considering the variable name it self.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900