如何使用KendoUIforjQuery數(shù)據(jù)管理

本篇內(nèi)容主要講解“如何使用Kendo UI for jQuery數(shù)據(jù)管理”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實(shí)用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“如何使用Kendo UI for jQuery數(shù)據(jù)管理”吧!

為大足等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計(jì)制作服務(wù),及大足網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計(jì)、大足網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠(yuǎn)!

Kendo UI for jQuery R1 2021 SP2試用版下載

Kendo UI是帶有jQuery、Angular、React和Vue庫的JavaScript UI組件的最終集合,無論選擇哪種JavaScript框架,都可以快速構(gòu)建高性能響應(yīng)式Web應(yīng)用程序。通過可自定義的UI組件,Kendo UI可以創(chuàng)建數(shù)據(jù)豐富的桌面、平板和移動Web應(yīng)用程序。通過響應(yīng)式的布局、強(qiáng)大的數(shù)據(jù)綁定、跨瀏覽器兼容性和即時(shí)使用的主題,Kendo UI將開發(fā)時(shí)間加快了50%。

以下示例演示了當(dāng)用戶將鼠標(biāo)懸停在Kendo UI PivotGrid小部件中的數(shù)據(jù)單元格元素時(shí)如何顯示工具提示。

<script src="https://demos.telerik.com/kendo-ui/content/shared/js/products.js"></script>
<div id="example">

<div id="pivotgrid"></div>

<script id="template" type="text/x-kendo-template">
<div>
<div>Rows: #:rowText#</div>
<div>Columns: #:columnText#</div>
<div>Value: #:value ? value : "N/A" #</div>
</div>
</script>

<script>
$(document).ready(function () {
$("#pivotgrid").kendoPivotGrid({
columnWidth: 120,
height: 570,
dataSource: {
data: products,
schema: {
model: {
fields: {
ProductName: { type: "string" },
UnitPrice: { type: "number" },
UnitsInStock: { type: "number" },
Discontinued: { type: "boolean" },
CategoryName: { field: "Category.CategoryName" }
}
},
cube: {
dimensions: {
ProductName: { caption: "All Products" },
CategoryName: { caption: "All Categories" },
Discontinued: { caption: "All Discontinued" }
},
measures: {
"Sum": { field: "UnitPrice", format: "{0:c}", aggregate: "sum" }
}
}
},
rows: [{ name: "CategoryName", expand: true }, { name: "ProductName" } ],
columns: [{ name: "Discontinued", expand: true }],
measures: ["Sum"]
}
});

$(".k-grid-content").kendoTooltip({
filter: "td",
content: toolTip,
width: 400,
height: 100,
position: "top"
});

$(".k-grid-content").click(toolTip);

function toolTip(e) {
var target = $(e.target);
var grid = $("#pivotgrid").getKendoPivotGrid();

var cellInfo = grid.cellInfoByElement(target);

return kendo.template($("#template").html())({
rowText: generateName(cellInfo.rowTuple),
columnText: generateName(cellInfo.columnTuple),
value: cellInfo.dataItem.fmtValue
});
}

function generateName(tuple) {
var text = "";
var members = tuple.members;

for (var idx = 0, length = members.length; idx < length; idx++) {
text += members[idx].name;

if (members[idx + 1]) {
text += "->";
}
}

return text;
}
});
</script>
</div>

到此,相信大家對“如何使用Kendo UI for jQuery數(shù)據(jù)管理”有了更深的了解,不妨來實(shí)際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

網(wǎng)站題目:如何使用KendoUIforjQuery數(shù)據(jù)管理
本文鏈接:http://bm7419.com/article44/igooee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、建站公司、營銷型網(wǎng)站建設(shè)品牌網(wǎng)站建設(shè)、搜索引擎優(yōu)化、網(wǎng)站策劃

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管