Skip to content

Commit 49b0f10

Browse files
committed
Fixing CORS issue in sample
Fixing CORS issue in sample
1 parent f1b549c commit 49b0f10

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

HTMLSamples/grid/append-rows-on-demand.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ <h3>$$(AppendRowsOnDemand_Button_Caption)</h3>
9191
});
9292

9393
$('#autoAppendRowsOnDemand').igGrid({
94-
dataSource: 'https://www.igniteui.com/api/tweets',
95-
responseDataKey: 'Records',
94+
dataSource: 'https://www.igniteui.com/api/tweets?callback=?',
95+
responseDataKey: 'd.results.Records',
9696
autoGenerateColumns: false,
9797
enableUTCDates: true,
9898
columns: [
@@ -105,7 +105,7 @@ <h3>$$(AppendRowsOnDemand_Button_Caption)</h3>
105105
],
106106
features: [
107107
{
108-
recordCountKey: 'TotalRecordsCount',
108+
recordCountKey: 'd.results.TotalRecordsCount',
109109
chunkIndexUrlKey: 'page',
110110
chunkSizeUrlKey: 'pageSize',
111111
name: 'AppendRowsOnDemand',
@@ -119,8 +119,8 @@ <h3>$$(AppendRowsOnDemand_Button_Caption)</h3>
119119
});
120120

121121
$('#buttonAppendRowsOnDemand').igGrid({
122-
dataSource: 'https://www.igniteui.com/api/tweets',
123-
responseDataKey: 'Records',
122+
dataSource: 'https://www.igniteui.com/api/tweets?callback=?',
123+
responseDataKey: 'd.results.Records',
124124
autoGenerateColumns: false,
125125
enableUTCDates: true,
126126
columns: [
@@ -133,7 +133,7 @@ <h3>$$(AppendRowsOnDemand_Button_Caption)</h3>
133133
],
134134
features: [
135135
{
136-
recordCountKey: 'TotalRecordsCount',
136+
recordCountKey: 'd.results.TotalRecordsCount',
137137
chunkIndexUrlKey: 'page',
138138
chunkSizeUrlKey: 'pageSize',
139139
name: 'AppendRowsOnDemand',

0 commit comments

Comments
 (0)