Skip to content

Commit 93c11b4

Browse files
Update ASP.NET code snippets (data layer, batch 2) (#8891)
1 parent b39b034 commit 93c11b4

11 files changed

Lines changed: 17 additions & 12 deletions

File tree

api-reference/30 Data Layer/ArrayStore/ArrayStore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ dx.web.js, dx.viz.js, dx.all.js
154154
##### ASP.NET MVC Controls
155155

156156
<!--Razor C#-->
157-
@(Html.DevExtreme().WidgetName()
157+
@(Html.DevExtreme().DataGrid()
158158
.DataSource(ds => ds.Array()
159159
.Key("id")
160160
.Data(new[] {
@@ -166,7 +166,7 @@ dx.web.js, dx.viz.js, dx.all.js
166166
)
167167
)
168168
@* ===== or a simplified version ===== *@
169-
@(Html.DevExtreme().WidgetName()
169+
@(Html.DevExtreme().DataGrid()
170170
.DataSource(new[] {
171171
new { id = 1, state = "Alabama", capital = "Montgomery" },
172172
new { id = 2, state = "Alaska", capital = "Juneau" },

api-reference/30 Data Layer/DataSource/1 Configuration/expand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Specifies the navigation properties to be loaded with the OData entity. Availabl
8383
##### ASP.NET MVC Controls
8484

8585
<!--Razor C#-->
86-
@(Html.DevExtreme().WidgetName()
86+
@(Html.DevExtreme().DataGrid()
8787
.DataSource(ds => ds.OData()
8888
.Expand("PropertyName1", "PropertyName2")
8989
)

api-reference/30 Data Layer/DataSource/1 Configuration/filter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ Possible variants:
7575
##### ASP.NET MVC Controls
7676

7777
<!--Razor C#-->
78-
@(Html.DevExtreme().WidgetName()
78+
@(Html.DevExtreme().DataGrid()
79+
// ...
7980
.DataSourceOptions(dso => dso
8081
.Filter("[ 'count', '<', '10' ]")
8182
)

api-reference/30 Data Layer/DataSource/1 Configuration/group.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ A function that returns the value to group by.
110110
##### ASP.NET MVC Controls
111111

112112
<!--Razor C#-->
113-
@(Html.DevExtreme().WidgetName()
113+
@(Html.DevExtreme().DataGrid()
114+
// ...
114115
.DataSourceOptions(dso => dso
115116
.Group("LastName", true)
116117
// === or as a function ===

api-reference/30 Data Layer/DataSource/1 Configuration/map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ A modified data item.
116116
##### ASP.NET MVC Controls
117117

118118
<!--Razor C#-->
119-
@(Html.DevExtreme().WidgetName()
119+
@(Html.DevExtreme().DataGrid()
120120
.DataSource(new [] {
121121
new {
122122
firstName = "John",

api-reference/30 Data Layer/DataSource/1 Configuration/postProcess.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Data after processing.
8484
##### ASP.NET MVC Controls
8585

8686
<!--Razor C#-->
87-
@(Html.DevExtreme().WidgetName()
87+
@(Html.DevExtreme().DataGrid()
8888
.DataSourceOptions(dso => dso
8989
.PostProcess("dataSource_postProcess")
9090
)

api-reference/30 Data Layer/DataSource/1 Configuration/select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ A function implementing custom selection logic.
8282
##### ASP.NET MVC Controls
8383

8484
<!--Razor C#-->
85-
@(Html.DevExtreme().WidgetName()
85+
@(Html.DevExtreme().DataGrid()
8686
.DataSourceOptions(dso => dso
8787
.Select("firstName", "lastName", "birthDate")
8888
)

api-reference/30 Data Layer/DataSource/1 Configuration/sort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ A function that returns the value to sort by.
134134
##### ASP.NET MVC Controls
135135

136136
<!--Razor C#-->
137-
@(Html.DevExtreme().WidgetName()
137+
@(Html.DevExtreme().DataGrid()
138138
.DataSourceOptions(dso => dso
139139
.Sort("Position", true) // for sorting by a single field
140140
// === or ===

api-reference/30 Data Layer/ODataStore/1 Configuration/fieldTypes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ Set this property if you are going to [filter data](/concepts/70%20Data%20Bindin
9393

9494
##### ASP.NET MVC Controls
9595

96-
<!--Razor C#-->@(Html.DevExtreme().WidgetName()
96+
<!--Razor C#-->
97+
@(Html.DevExtreme().DataGrid()
9798
.DataSource(d => d.OData()
9899
.Url("http://www.example.com/Northwind.svc/Products")
99100
.Key("Product_ID")

api-reference/30 Data Layer/ODataStore/ODataStore.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ dx.web.js, dx.viz.js, dx.all.js
134134

135135
##### ASP.NET MVC Controls
136136

137-
<!--Razor C#-->@(Html.DevExtreme().WidgetName()
137+
<!--Razor C#-->
138+
@(Html.DevExtreme().DataGrid()
138139
.DataSource(ds => ds.OData()
139140
.Url("http://www.example.com/Northwind.svc/Products")
140141
.Key("ProductID")

0 commit comments

Comments
 (0)