Hi,
I have 3 fields in database
Id Name FileName
1 resume.doc ~/Uploads/resume.docx
2 invoice.odf ~/Uploads/invoice.pdf
currently my requirement is that after loading of page these values are displaying on kendo grid
after clicking of partucular file i need to preview that file
could you please help me
@{
Layout = null;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>AngularJS: Input Type Date Set Date</title>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.226/styles/kendo.common-material.min.css" />
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.226/styles/kendo.bootstrap.min.css" />
<script src="//kendo.cdn.telerik.com/2016.1.226/js/jquery.min.js"></script>
<script src="//kendo.cdn.telerik.com/2016.1.226/js/angular.min.js"></script>
<script src="//kendo.cdn.telerik.com/2016.1.226/js/kendo.all.min.js"></script>
<script type="text/javascript">
var app = angular.module('MyApp', ["kendo.directives"])
app.controller('MyController', function ($scope) {
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
transport: {
read: "/Home/GetAll/",
},
pageSize: 20
},
height: 550,
groupable: true,
sortable: true,
columns: [
{
field: "Id",
title: "Id",
width: "10%",
}, {
field: "FileName",
title: "FileName",
width: "15%",
}]
});
});
});
</script>
</head>
<body ng-app="MyApp" ng-controller="MyController">
<div id="example">
<div id="grid"></div>
</div>
</body>
</html>