Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api-reference/30 Data Layer/ArrayStore/ArrayStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ dx.web.js, dx.viz.js, dx.all.js
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSource(ds => ds.Array()
.Key("id")
.Data(new[] {
Expand All @@ -166,7 +166,7 @@ dx.web.js, dx.viz.js, dx.all.js
)
)
@* ===== or a simplified version ===== *@
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSource(new[] {
new { id = 1, state = "Alabama", capital = "Montgomery" },
new { id = 2, state = "Alaska", capital = "Juneau" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Specifies the navigation properties to be loaded with the OData entity. Availabl
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSource(ds => ds.OData()
.Expand("PropertyName1", "PropertyName2")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ Possible variants:
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
// ...
.DataSourceOptions(dso => dso
.Filter("[ 'count', '<', '10' ]")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ A function that returns the value to group by.
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
// ...
.DataSourceOptions(dso => dso
.Group("LastName", true)
// === or as a function ===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ A modified data item.
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSource(new [] {
new {
firstName = "John",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Data after processing.
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSourceOptions(dso => dso
.PostProcess("dataSource_postProcess")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ A function implementing custom selection logic.
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSourceOptions(dso => dso
.Select("firstName", "lastName", "birthDate")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ A function that returns the value to sort by.
##### ASP.NET MVC Controls

<!--Razor C#-->
@(Html.DevExtreme().WidgetName()
@(Html.DevExtreme().DataGrid()
.DataSourceOptions(dso => dso
.Sort("Position", true) // for sorting by a single field
// === or ===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ Set this property if you are going to [filter data](/concepts/70%20Data%20Bindin

##### ASP.NET MVC Controls

<!--Razor C#-->@(Html.DevExtreme().WidgetName()
<!--Razor C#-->
@(Html.DevExtreme().DataGrid()
.DataSource(d => d.OData()
.Url("http://www.example.com/Northwind.svc/Products")
.Key("Product_ID")
Expand Down
3 changes: 2 additions & 1 deletion api-reference/30 Data Layer/ODataStore/ODataStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ dx.web.js, dx.viz.js, dx.all.js

##### ASP.NET MVC Controls

<!--Razor C#-->@(Html.DevExtreme().WidgetName()
<!--Razor C#-->
@(Html.DevExtreme().DataGrid()
.DataSource(ds => ds.OData()
.Url("http://www.example.com/Northwind.svc/Products")
.Key("ProductID")
Expand Down
3 changes: 2 additions & 1 deletion api-reference/30 Data Layer/XmlaStore/XmlaStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ The **XmlaStore** is used in the [PivotGridDataSource](/api-reference/30%20Data%

##### ASP.NET MVC Controls

<!--Razor C#-->@(Html.DevExtreme().PivotGrid()
<!--Razor C#-->
@(Html.DevExtreme().PivotGrid()
.DataSource(ds => ds
.Store(s => s.Xmla()
.Url("http://my-web-srv01/OLAP/msmdpump.dll")
Expand Down
Loading