This question is locked. New answers and comments are not allowed.
If I edit a row - after accepting the edit - the images are not displayed anymore - after clicking the refresh button images are visible again.
Thanks for any help.
Nikolaus
<div>
@(Html.Telerik().Grid<Wiscon.WebShop.WebUI.Models.WebOrderSearchModel>()
.Name("OrderGrid")
.Localizable("de-DE")
.DataKeys(keys => keys.Add(c => c.ID))
.DataBinding(dataBinding => dataBinding.Ajax()
.OperationMode(GridOperationMode.Server)
.Select("OrderSearchDataBinding", "Product")
.Update("OrderUpdate", "Product")
.Delete("OrderDelete", "Product")
)
.Columns(columns => {
columns.Bound(o => o.ID).Hidden(true);
columns.Bound(o => o.FileNameThumbnail).Title(" ").ReadOnly(true)
.ClientTemplate("<img alt='<#= FileNameThumbnail #>' src='" + Url.Content("~/Content/ImagesProdukte/") + "<#= FileNameThumbnail #>' width='65px;' />");
columns.Bound(o => o.Description).Title("Artikel").ReadOnly(true)
.ClientTemplate("" + Html.ActionLink("<#= Description #>", "ProductDetail", "Product", new { id = "<#= ProductID #>" }, new { @class = "ProductDetailLink" }));
columns.Bound(o => o.Price).Title("Preis").Format("{0:n}").ReadOnly(true);
columns.Bound(o => o.Amount).Title("Anzahl").ReadOnly((ViewBag.PayURL.Length == 0 ? false : true));
columns.Command(commands => {
commands.Edit().ButtonType(GridButtonType.Image);
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(90).Title("Aktion");
})
.Pageable(paging =>
paging.Position(GridPagerPosition.Top)
.Style(GridPagerStyles.NextPreviousAndNumeric)
.PageSize(10)
)
.Sortable()
.Scrollable(c => {
c.Enabled(false);
c.Height("Auto");
})
)
</div>
Thanks for any help.
Nikolaus
<div>
@(Html.Telerik().Grid<Wiscon.WebShop.WebUI.Models.WebOrderSearchModel>()
.Name("OrderGrid")
.Localizable("de-DE")
.DataKeys(keys => keys.Add(c => c.ID))
.DataBinding(dataBinding => dataBinding.Ajax()
.OperationMode(GridOperationMode.Server)
.Select("OrderSearchDataBinding", "Product")
.Update("OrderUpdate", "Product")
.Delete("OrderDelete", "Product")
)
.Columns(columns => {
columns.Bound(o => o.ID).Hidden(true);
columns.Bound(o => o.FileNameThumbnail).Title(" ").ReadOnly(true)
.ClientTemplate("<img alt='<#= FileNameThumbnail #>' src='" + Url.Content("~/Content/ImagesProdukte/") + "<#= FileNameThumbnail #>' width='65px;' />");
columns.Bound(o => o.Description).Title("Artikel").ReadOnly(true)
.ClientTemplate("" + Html.ActionLink("<#= Description #>", "ProductDetail", "Product", new { id = "<#= ProductID #>" }, new { @class = "ProductDetailLink" }));
columns.Bound(o => o.Price).Title("Preis").Format("{0:n}").ReadOnly(true);
columns.Bound(o => o.Amount).Title("Anzahl").ReadOnly((ViewBag.PayURL.Length == 0 ? false : true));
columns.Command(commands => {
commands.Edit().ButtonType(GridButtonType.Image);
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(90).Title("Aktion");
})
.Pageable(paging =>
paging.Position(GridPagerPosition.Top)
.Style(GridPagerStyles.NextPreviousAndNumeric)
.PageSize(10)
)
.Sortable()
.Scrollable(c => {
c.Enabled(false);
c.Height("Auto");
})
)
</div>