or
<div kendo-diagram="diagram" k-options="options" />_progress: function(toggle) { var element = this.element; if (this.lockedContent) { element = this.wrapper; } else if (this.element.is("table")) { element = this.element.parent(); } else if (this.content && this.content.length) { element = this.content.height() === 0 ? this.content.parent() : this.content; } kendo.ui.progress(element, toggle);}
@(Html.Kendo().Grid(Of SPIMS.ViewModel.ProjectViewModel.StatusAndLockingEntity)() _ .Name("gridProjectAttachment") _ .Columns(Sub(c) c.Bound(Function(p) p.ID).Visible(False) c.Bound(Function(p) p.AttachmentName).Width(300).HtmlAttributes(New With {.class = "gridContentLeft"}).Title("Attachment") _ .ClientTemplate("<a href='javascript:statusAndLocking_DownloadFile(" + "#=ID#" + ")'>" + "#=AttachmentName#" + "</a>") c.Bound(Function(p) p.FileSize).Width(100).HtmlAttributes(New With {.class = "gridBodyAttribute"}).Title("File Size") End Sub) _ .Sortable(Function(sorting) sorting.AllowUnsort(True)) _ .Filterable() _ .Scrollable() _ .HtmlAttributes(New With {.style = "height:200px;width:470px;"}) _ .DataSource(Sub(d) d.Ajax() _ .PageSize(Session(LocalConstant.Ses_GridPageSize)) _ .Model(Sub(model) model.Id(Function(p) p.ID)) _ .Events(Sub(e) e.Error("grid_error_handler") End Sub) _ .ServerOperation(False) _ .Read(Function(read) read.Action("ProjectAttachment_Read", "StatusAndLocking")) End Sub) _ .Pageable(Function(pageable) pageable _ .Refresh(True) _ .PageSizes(True) _ .ButtonCount(Session(LocalConstant.Ses_GridButtonCount))))function statusAndLocking_DownloadFile(projectAttachmentID) { var windowAttachment = "#windowAttachment"; debugger; $(windowAttachment).kendoWindow(); var dialog = $(windowAttachment).data("kendoWindow"); dialog.refresh( { url: "/StatusAndLocking/GetFileByProjectAttachmentID", data: { id: projectAttachmentID } }); }'Download File Function GetFileByProjectAttachmentID(ByVal id As Integer) As FileContentResult Dim _repoProject As New ProjectRepository Dim _projectAttachment As New ProjectViewModel.StatusAndLockingEntity Dim fileData As Byte() = Nothing Dim fileName As String = String.Empty _projectAttachment = _repoProject.StatusAndLocking_GetFileByProjectAttachmentID(id) If _projectAttachment IsNot Nothing Then fileData = _projectAttachment.SystemFile fileName = _projectAttachment.AttachmentName End If Return File(fileData, System.Net.Mime.MediaTypeNames.Application.Octet, fileName) End Function