Skip to content

Commit 46098e0

Browse files
Update ASP.NET code snippets (popular components, batch 1) (#8882) (#8884)
1 parent 0d1f33f commit 46098e0

27 files changed

Lines changed: 23 additions & 242 deletions

File tree

api-reference/10 UI Components/GridBase/1 Configuration/editing/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Default form editors depend on the [columns' configuration](/api-reference/10%20
125125
groupItems.AddSimple().DataField("Full_Name");
126126
groupItems.AddSimple().DataField("Position");
127127
groupItems.AddSimple().DataField("Duties")
128-
.Editor(e => e.TextArea());
128+
.Editor(g => g.TextArea());
129129
});
130130
i.AddGroup()
131131
.Caption("Contacts")

api-reference/10 UI Components/GridBase/1 Configuration/filterValue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The filter expression can contain the following operations: *"="*, *"<>"*, *"<"*
116116
##### ASP.NET MVC Controls
117117

118118
<!-- tab: Razor C# -->
119-
@(Html.DevExtreme().DataGrid()
119+
@(Html.DevExtreme().{WidgetName}()
120120
// ...
121121
.FilterSyncEnabled(true)
122122
.HeaderFilter(hf => hf.Visible(true))
@@ -257,7 +257,7 @@ If a column's [groupInterval](/api-reference/40%20Common%20Types/15%20grids/Colu
257257
##### ASP.NET MVC Controls
258258

259259
<!-- tab: Razor C# -->
260-
@(Html.DevExtreme().DataGrid()
260+
@(Html.DevExtreme().{WidgetName}()
261261
// ...
262262
// Filter intervals are 500-600 and 700-800
263263
.HeaderFilter(headerFilter => headerFilter.Visible(true))

api-reference/10 UI Components/dxChart/1 Configuration/commonAxisSettings/aggregatedPointsPosition.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,19 @@ Specifies the start position of the aggregated series points in the aggregation
111111

112112
<!--Razor C#-->
113113
@(Html.DevExtreme().Chart()
114-
.AggregatedPointsPosition(AggregatedPointsPosition.CrossTicks)
114+
.CommonAxisSettings(s => s
115+
.AggregatedPointsPosition(AggregatedPointsPosition.CrossTicks)
116+
)
115117
// ...
116118
)
117119

118120
##### ASP.NET MVC Controls
119121

120122
<!--Razor C#-->
121123
@(Html.DevExtreme().Chart()
122-
.AggregatedPointsPosition(AggregatedPointsPosition.CrossTicks)
124+
.CommonAxisSettings(s => s
125+
.AggregatedPointsPosition(AggregatedPointsPosition.CrossTicks)
126+
)
123127
// ...
124128
)
125129

api-reference/10 UI Components/dxChart/5 Series Types/CommonSeries/label/displayFormat.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ The example below illustrates how to customize label text for all series and ind
183183
.Visible(true)
184184
)
185185
)
186-
)
187186
.Series(s => {
188187
s.Add().ValueField("y1564").Name("15-64 years");
189188
s.Add().ValueField("y014").Name("0-14 years");
@@ -205,7 +204,6 @@ The example below illustrates how to customize label text for all series and ind
205204
.Visible(true)
206205
)
207206
)
208-
)
209207
.Series(s => {
210208
s.Add().ValueField("y1564").Name("15-64 years");
211209
s.Add().ValueField("y014").Name("0-14 years");

api-reference/10 UI Components/dxFileUploader/1 Configuration/onBeforeSend.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ An object that provides information about the file upload session.
138138

139139
<!--Razor C#-->
140140
@(Html.DevExtreme().FileUploader()
141-
.OnBeforeSend("onBeforeSend");
141+
.OnBeforeSend("onBeforeSend")
142142
// ...
143143
)
144144

@@ -152,7 +152,7 @@ An object that provides information about the file upload session.
152152

153153
<!--Razor C#-->
154154
@(Html.DevExtreme().FileUploader()
155-
.OnBeforeSend("onBeforeSend");
155+
.OnBeforeSend("onBeforeSend")
156156
// ...
157157
)
158158

api-reference/10 UI Components/dxFileUploader/1 Configuration/onFilesUploaded.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The UI component's instance.
129129

130130
<!--Razor C#-->
131131
@(Html.DevExtreme().FileUploader()
132-
.OnFilesUploaded("onFilesUploaded");
132+
.OnFilesUploaded("onFilesUploaded")
133133
// ...
134134
)
135135

@@ -143,7 +143,7 @@ The UI component's instance.
143143

144144
<!--Razor C#-->
145145
@(Html.DevExtreme().FileUploader()
146-
.OnFilesUploaded("onFilesUploaded");
146+
.OnFilesUploaded("onFilesUploaded")
147147
// ...
148148
)
149149

api-reference/10 UI Components/dxFileUploader/1 Configuration/onUploadError.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ The following code shows how you can handle a network error.
157157

158158
<!--Razor C#-->
159159
@(Html.DevExtreme().FileUploader()
160-
.OnUploadError("onUploadError");
160+
.OnUploadError("onUploadError")
161161
// ...
162162
)
163163

@@ -174,7 +174,7 @@ The following code shows how you can handle a network error.
174174

175175
<!--Razor C#-->
176176
@(Html.DevExtreme().FileUploader()
177-
.OnUploadError("onUploadError");
177+
.OnUploadError("onUploadError")
178178
// ...
179179
)
180180

api-reference/10 UI Components/dxPieChart/5 Series Types/CommonPieChartSeries/label/displayFormat.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ The example below illustrates how to customize label text for all series and ind
175175
.Visible(true)
176176
)
177177
)
178-
)
179178
.Series(s => {
180179
s.Add().ValueField("y1564").Name("15-64 years");
181180
s.Add().ValueField("y014").Name("0-14 years");
@@ -196,7 +195,6 @@ The example below illustrates how to customize label text for all series and ind
196195
.Visible(true)
197196
)
198197
)
199-
)
200198
.Series(s => {
201199
s.Add().ValueField("y1564").Name("15-64 years");
202200
s.Add().ValueField("y014").Name("0-14 years");

api-reference/10 UI Components/dxPolarChart/5 Series Types/CommonPolarChartSeries/label/displayFormat.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ The example below illustrates how to customize label text for all series and ind
180180
.Visible(true)
181181
)
182182
)
183-
)
184183
.Series(s => {
185184
s.Add().ValueField("y1564").Name("15-64 years");
186185
s.Add().ValueField("y014").Name("0-14 years");
@@ -202,7 +201,6 @@ The example below illustrates how to customize label text for all series and ind
202201
.Visible(true)
203202
)
204203
)
205-
)
206204
.Series(s => {
207205
s.Add().ValueField("y1564").Name("15-64 years");
208206
s.Add().ValueField("y014").Name("0-14 years");

api-reference/10 UI Components/dxPopup/1 Configuration/toolbarItems/toolbarItems.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ In the following code, two items are defined on the toolbar: one is plain text,
9393

9494
<!-- tab: Index.cshtml -->
9595
@(Html.DevExtreme().{WidgetName}()
96-
<!-- ... -->
96+
// ...
9797
.ContentTemplate(@<text>
9898
<p>{WidgetName} content</p>
9999
</text>)
@@ -106,7 +106,7 @@ In the following code, two items are defined on the toolbar: one is plain text,
106106
.Text("Refresh")
107107
.OnClick("refresh"))
108108
.Location(ToolbarItemLocation.After);
109-
}
109+
})
110110
)
111111

112112
<script type="text/javascript">

0 commit comments

Comments
 (0)