or
$(document).ready(function () { $("#resulttable").kendoGrid({ width: 860, groupable: false, sortable: false, scrollable: false }); });and
$(document).ready(function () { $("#invoicedetails").kendoGrid({ width: 860, groupable: false, sortable: false, scrollable: false }); });
<table id="invoicedetails"> <thead> <tr> <th ><%=Session("formfields")(453) %></th> <th ><%= Session("formfields")(958) %></th> <th ><%=Session("formfields")(323)%></th> <th ><%=Session("formfields")(961) %></th> <th ><%=Session("formfields")(348) %></th> <th ><%=Session("formfields")(963) %></th> </tr> </thead> <tbody> <% iCnt = 0 Dim strClass As String = "" For Each order In getorders.Rows Dim totalex As Decimal = order("nrprod") * order("unitprice") totalex = thisorder.round(totalex, 2) Dim totalin As Decimal = thisorder.round(totalex * (100 + order("vatperc")) / 100, 2) Dim nrunit As String = "" If CInt(order("nrprod")) <> 1 Then nrunit = order("nrprod").ToString End If%> <tr > <td ><a href="<%: Url.Action(targetaction, targetcontroller, New With {.id = ViewData("functionid"), .roleid = Session("roleid"), .invoicenr=session("invoicenr")}, Nothing) %>"><%=order("invnr") %></a></td> <td ><%=order("invline") %></td> <td ><%= order("invdate")%></td> <td><%=totalex %></td> <td ><%=order("vatperc") %>%</td> <td ><%=totalin %></td> </tr> <%iCnt = iCnt + 1 Next %> </tbody> </table>
<script type="text/javascript"> $(document).ready(function () { $("#chart").kendoChart({ dataSource: { transport: { read: { type:"post", url:"http://localhost:1038/Services/ProductService.svc/jIlBazliAnaliz", dataType: "json", data: '{BasTar:"2011-01-01",SonTar:"2011-12-31"}' } } }, seriesDefaults: { type: "column" }, series: [{ field: "Sayi", name: "Sayi" }], categoryAxis: { field: "IlAdi", labels: { rotation:-90 } } }); }); </script>[OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "jIlBazliAnaliz")] IList<ModelIlBazliAnaliz> jIlBazliAnaliz(DateTime BasTar, DateTime SonTar);$('h1,h2,h2 a,h3,h5,h6:not(.fx-cufon)').livequery(function() { $(this).addClass('fx-cufon'); Cufon.replace($(this), { fontFamily: 'Decker', hover:true }); });public ActionResult GetProducts()
{
----------
return Json(Products, JsonRequestBehavior.AllowGet);
}
--Javascript to bind datasource
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: ('@Url.Action("GetProducts")'),
dataType: "jsonp"
}
},
pageSize: 12
});
// Model View
@model IEnumerable<Models.Product>
@{
ViewBag.Title = "Index";
}