Skip to content

Commit 79dcee5

Browse files
authored
Merge pull request #62 from tbelcheva/fix-245376
Changing the datasource in tooltips sample, because of unsupported da…
2 parents e701d5d + 58b9da7 commit 79dcee5

2 files changed

Lines changed: 1023 additions & 518 deletions

File tree

HTMLSamples/grid/tooltips.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@
2121
</head>
2222
<body>
2323
<table id="grid"></table>
24-
<script src="../../../../data-files/northwind.js"></script>
24+
<script src="../../../../data-files/adventureworks.min.js"></script>
2525
<script>
2626
$(function () {
2727
$( "#grid" ).igGrid( {
2828
autoGenerateColumns: false,
2929
autofitLastColumn: false,
30+
renderCheckboxes: true,
3031
width: "100%",
3132
columns: [
32-
{ headerText: "$$(Northwind_Employees_FirstName)", key: "FirstName", dataType: "string", width: "10%" },
33-
{ headerText: "$$(Northwind_Employees_LastName)", key: "LastName", dataType: "string", width: "10%" },
34-
{ headerText: "$$(Northwind_Employees_Title)", key: "Title", dataType: "string", width: "17%" },
35-
{ headerText: "$$(Northwind_Employees_BirthDate)", key: "BirthDate", dataType: "date", width: "8%" },
36-
{ headerText: "$$(Northwind_Employees_Notes)", key: "Notes", dataType: "string", width: "55%", template: "<p class='tooltip-grid-notes'> ${Notes} </p>" }
33+
{ headerText: "$$ (AdventureWorks_Products_Name"), key: "Name", dataType: "string", width: "20%" },
34+
{ headerText: "$$ (AdventureWorks_Products_ProductNumber"), key: "ProductNumber", dataType: "string", width: "20%" },
35+
{ headerText: "$$ (AdventureWorks_Products_MakeFlag)", key: "MakeFlag", dataType: "bool", width: "10%" },
36+
{ headerText: "$$ (AdventureWorks_Products_ReorderPoint)", key: "ReorderPoint", dataType: "number", width: "10%" },
37+
{ headerText: "$$ (AdventureWorks_Products_SellStartDate)", key: "SellStartDate", dataType: "date", width: "15%" }
3738
],
38-
dataSource: northwind,
39-
responseDataKey: "results",
39+
dataSource: adventureWorks.slice(0, 10),
4040
features: [
4141
{
4242
name: "Tooltips",
4343
columnSettings: [
44-
{ columnKey: "FirstName", allowTooltips: false },
45-
{ columnKey: "LastName", allowTooltips: false }
44+
{ columnKey: "Name", allowTooltips: false },
45+
{ columnKey: "MakeFlag", allowTooltips: false }
4646
],
4747
style: Modernizr.touch ? "popover" : "tooltip",
4848
visibility: "always"
@@ -52,15 +52,15 @@
5252
enableVerticalRendering: false,
5353
columnSettings: [
5454
{
55-
columnKey: "LastName",
55+
columnKey: "MakeFlag",
5656
classes: "ui-hidden-phone"
5757
},
5858
{
59-
columnKey: "Title",
59+
columnKey: "ReorderPoint",
6060
classes: "ui-hidden-phone"
6161
},
6262
{
63-
columnKey: "BirthDate",
63+
columnKey: "SellStartDate",
6464
classes: "ui-hidden-phone"
6565
}
6666
]

0 commit comments

Comments
 (0)