Hi - I have the following Grid with Images:
@(Html.Kendo().Grid<
MvcApplication.Models.Articles
>()
.Name("gridSelectedArticles")
.DataSource(dataSource => dataSource // Configure the grid data source
.Ajax() // Specify that ajax binding is used
//.Read(read => read.Action("Articles_Read", "Parts").Data("additionalInfo")) // Set the action method which will return the data in JSON format
.ServerOperation(false)
.PageSize(5)
.Aggregates(a => a.Add(c => c.Price).Sum())
)
.AutoBind(false)
.Columns(columns =>
{
columns.Bound(a => a.StockCode).Title("Artikelnummer");
columns.Bound(a => a.ImageUrl).ClientTemplate("<
img
src
=
'#=ImageUrl#'
alt
=
'#=StockCode #'
title
=
'#=StockCode #'
width
=
'55'
/>").Title("Bild");
columns.Bound(a => a.StockBalance).Title("Lagerbestand");
columns.Bound(a => a.Price).Title("Preis").Format("{0:C}")
.ClientFooterTemplate("Total #= kendo.toString(sum, 'C')#");
})
.Pageable() // Enable paging
.Sortable() // Enable sorting
.Selectable(n => n.Mode(GridSelectionMode.Single))
.ToolBar(tools => tools.Pdf())
.Pdf(pdf => pdf
.AllPages()
.FileName("Kendo UI Grid Export.pdf")
.ProxyURL(Url.Action("Pdf_Export_Save", "Parts"))
)
//.Events(e => e.DataBound("fDataChanged"))
)
When I export to PDF, the Images are missing in the PDF File.
Images in the Sample here
http://demos.telerik.com/kendo-ui/grid/pdf-export
are exported though. What am I doing wrong?
Thank you.