Hello,
I've a grid defined as
I wish at column click to load open a new page for downloading a pdf....
in other parts of the project I've used something as
but now I can't since I don't have the link client side.... is there any simple way of doing that?
Thanks
I've a grid defined as
@(Html.Kendo().Grid<Communications.Communication>() .Name("grid") .Columns(columns => { columns.Bound(c => c.Protocol).Title(ResourceStrings.Protocol); columns.Bound(c => c.Date).ClientTemplate(@DateTimeHtmlHelper.GetParsedDate("Date")).Title(ResourceStrings.Date); columns.Bound(c => c.CodiceRapporto).Title(ResourceStrings.CodeDossier); columns.Bound(c => c.Type).Title(ResourceStrings.Type); columns.Command(commadnAction => commadnAction.Custom("download").Text("Download").Click("Download")); }) .Resizable(resize => resize.Columns(true)) .Scrollable(scr => scr.Enabled(true)) .Filterable() .Sortable() .DataSource(dataSource => dataSource .Ajax() ) .ToolBar(toolbar => { toolbar.Template(@<text> <div class="toolbar"> <label>Data da </label> @Html.Kendo().DatePicker().Name("dateFrom").Value(@Model.DateFrom) <label> Data a </label> @Html.Kendo().DatePicker().Name("dateTo").Value(@Model.DateTo) @Html.Kendo().Button().Name("btnCarica").Content(ResourceStrings.BtnLoadData).Events(events => { events.Click("LoadData"); }) </div> </text>); } ))<script> function Download(e) { var dataItem = this.dataItem($(e.currentTarget).closest("tr")); var content ="@Html.ActionLink("CommunicationsReport", "Reports", new { protocol = 123 })" alert(content); }</script>I wish at column click to load open a new page for downloading a pdf....
in other parts of the project I've used something as
var content ="@Html.ActionLink("CommunicationsReport", "Reports", new { protocol = 123 })"but now I can't since I don't have the link client side.... is there any simple way of doing that?
Thanks