Skip to content

Commit d8bbd5c

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 9034fb6 commit d8bbd5c

File tree

46 files changed

+2549
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2549
-356
lines changed

docs-aspnet-core/_config.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ navigation:
4646
title: "Data Source"
4747
"tag-helpers/data-management":
4848
title: "Data Management"
49+
"tag-helpers/data-management/filter":
50+
title: "Filter"
4951
"tag-helpers/data-management/grid":
5052
title: "Grid"
51-
position: 1
5253
"tag-helpers/data-management/pivotgrid":
5354
title: "PivotGrid"
54-
position: 2
5555
"tag-helpers/editors":
5656
title: "Editors"
5757
"tag-helpers/charts":
@@ -88,11 +88,10 @@ navigation:
8888
title: "Data Source"
8989
"html-helpers/data-management":
9090
title: "Data Management"
91+
"html-helpers/data-management/filter":
92+
title: "Filter"
9193
"html-helpers/data-management/grid":
9294
title: "Grid"
93-
"html-helpers/data-management/grid/binding":
94-
title: "Data Binding"
95-
position: 2
9695
"html-helpers/data-management/grid/editing":
9796
title: "Editing"
9897
position: 3
@@ -182,9 +181,6 @@ navigation:
182181
title: "Navigation"
183182
"html-helpers/navigation/radiobutton":
184183
title: "RadioButton"
185-
"html-helpers/navigation/menu/binding":
186-
title: "Binding"
187-
position: 2
188184
"html-helpers/navigation/menu/contextmenu":
189185
title: "ContextMenu"
190186
position: 3
@@ -204,9 +200,6 @@ navigation:
204200
title: "PDF"
205201
"html-helpers/pdf/pdfviewer":
206202
title: "PDFViewer"
207-
"html-helpers/scheduling/scheduler/binding":
208-
title: "Binding"
209-
position: 2
210203
"styles-and-layout":
211204
title: "Styles and Appearance"
212205
position: 5
@@ -223,8 +216,8 @@ navigation:
223216
## List helpers directory names and order here, like this:
224217
"*appearance":
225218
title: "Appearance"
226-
"*binding":
227-
title: "Binding"
219+
"*/binding":
220+
title: "Data Binding"
228221
position: 2
229222
"*troubleshoot":
230223
title: "Troubleshooting"
@@ -286,6 +279,8 @@ navigation:
286279
title: "DateRangePicker"
287280
"*datetimepicker":
288281
title: "DateTimePicker"
282+
"*diagram":
283+
title: "Diagram"
289284
"*dialog":
290285
title: "Dialog"
291286
"*draganddrop":

docs-aspnet-core/getting-started/prerequisites/jquery-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The following table provides a list of the jQuery versions that are compatible w
2222

2323
| Major Releases | jQuery Version | Comments |
2424
| :--- | :--- | :--- |
25+
| [UI for ASP.NET Core 2019.2.514 (R2 2019)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r2-2019)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.4.1|
2526
| [UI for ASP.NET Core 2019.1.115 (R1 2019)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/progress-telerik-ui-for-asp-net-core-2019-1-115-changelog--uiaspcore-2019-1-115-058b0897-ab2d-46ba-b26d-4a4cbb33210c)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.3.1|
2627
| [UI for ASP.NET Core 2018.3.911 (R3 2018)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r3-2018) |1.12.4| Also compatible with 1.10.x, 2.2.x and 3.3.1|
2728
| [UI for ASP.NET Core 2018.2.516 (R2 2018)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r2-2018-uiaspcore-2018-2-516) |1.12.4| Also compatible with 1.10.x, 2.2.x and 3.3.1|
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
title: Localization
3+
page_title: Localization | Telerik UI Filter HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI Filter HtmlHelper for ASP.NET Core and learn how to localize its operator texts."
5+
slug: htmlhelpers_filter_aspnetcore_localization
6+
position: 2
7+
---
8+
9+
# Localization
10+
11+
The Filter provides options for defining the text of its filter operators (for example, `contains`, `equals`, or `greater than`) and logic messages (for example, `AND` and `OR`).
12+
13+
To localize the messages, set the desired strings in the `.Operators()` and `.Messages()` options. You can also use this feature to [select the available filter operators]({% slug htmlhelpers_filter_aspnetcore_choose_operators %}).
14+
15+
```View
16+
<script type="text/x-kendo-template" id="itemTemplate">
17+
<li>
18+
<strong>#= Name #</strong>, aged #= Age #, is on vacation: #= IsOnLeave #
19+
</li>
20+
</script>
21+
22+
@(Html.Kendo().DataSource<SampleData>()
23+
.Name("dataSource1")
24+
.Ajax(d=>d.Read(r => r.Action("GetPeople", "Filter")))
25+
)
26+
27+
@(Html.Kendo().Filter<SampleData>()
28+
.Name("filter")
29+
30+
.Messages(m => // Custom texts for localizable UI.
31+
{
32+
m.And("AND"); // The AND main logic text.
33+
m.Or("OR"); // The OR main logic text.
34+
m.Apply("Set Filter"); // The APPLY button text.
35+
})
36+
37+
.Operators(o => // Define the custom texts for the operator names and select the available operators.
38+
{
39+
o.String(s =>
40+
{
41+
s.Eq("Is Exactly");
42+
s.Contains("Partially Matches");
43+
});
44+
o.Number(n =>
45+
{
46+
n.Gte("Older Than");
47+
n.Lt("Younger Than");
48+
});
49+
})
50+
51+
.MainLogic(FilterCompositionLogicalOperator.And)
52+
.ExpressionPreview() // Shows a text preview of the filter expression.
53+
.ApplyButton() // Shows the built-in Apply button.
54+
.Fields(f => // Defining the fields is not mandatory. Otherwise, they will be taken from the data source schema.
55+
// If you define the fields, their names and types must match the data source definition.
56+
{
57+
f.Add(p=>p.Name).Label("Name");
58+
f.Add(p=>p.Age).Label("Age");
59+
f.Add(p=>p.IsOnLeave).Label("On Vacation");
60+
})
61+
.FilterExpression(f => { // Defining an initial filter expression is not required.
62+
f.Add(p => p.Age).IsGreaterThanOrEqualTo(30);
63+
f.Add(p => p.Name).Contains("Doe");
64+
})
65+
.DataSource("dataSource1")
66+
)
67+
68+
@(Html.Kendo().ListView<SampleData>()
69+
.Name("listView")
70+
.TagName("ul")
71+
.DataSource("dataSource1")
72+
.ClientTemplateId("itemTemplate")
73+
)
74+
75+
<script>
76+
$(document).ready(function () {
77+
// Apply filtering immediately after the helper initialization because an initial filter is set.
78+
$("#filter").getKendoFilter().applyFilter();
79+
});
80+
</script>
81+
```
82+
```Controller
83+
using Kendo.Mvc.Extensions;
84+
using Kendo.Mvc.UI;
85+
86+
public class FilterController : BaseController
87+
{
88+
public IActionResult GetPeople([DataSourceRequest]DataSourceRequest request)
89+
{
90+
var people = new List<SampleData>() {
91+
new SampleData() { Name = "Jane Doe", Age = 25, IsOnLeave = false },
92+
new SampleData() { Name = "John Doe", Age = 33, IsOnLeave = true },
93+
new SampleData() { Name = "John Smith", Age = 37, IsOnLeave = true },
94+
new SampleData() { Name = "Nathan Doe", Age = 42, IsOnLeave = false }
95+
};
96+
return Json(people.ToDataSourceResult(request));
97+
}
98+
99+
public IActionResult Index()
100+
{
101+
return View();
102+
}
103+
}
104+
```
105+
```Model
106+
public class SampleData
107+
{
108+
public int Age { get; set; }
109+
public string Name { get; set; }
110+
public bool IsOnLeave { get; set; }
111+
}
112+
```
113+
114+
## See Also
115+
116+
* [Basic Usage of the Filter HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/filter/index)
117+
* [Server-Side API](/api/filter)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Overview
3+
page_title: Filter Globalization | Telerik UI Filter HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI Filter HtmlHelper for ASP.NET Core and learn about the globalization options it supports."
5+
slug: globalization_filter_aspnetcore
6+
position: 1
7+
---
8+
9+
# Filter Globalization
10+
11+
The globalization process combines the translation of component messages (localization) with adapting them to specific cultures (internationalization and right-to-left support).
12+
13+
The globalization functionality of the Filter is enabled through the [localization of its messages]({% slug htmlhelpers_filter_aspnetcore_localization %}).
14+
15+
For more information on using localization and right-to-left languages with Telerik UI for ASP.NET Core helpers, refer to the article on [globalization support by Telerik UI for ASP.NET Core]({% slug overview_globalization_core %}).
16+
17+
## See Also
18+
19+
* [Globalization in Telerik UI for ASP.NET Core]({% slug overview_globalization_core %})
20+
* [Server-Side API](/api/filter)
19.6 KB
Loading
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: Setting the Operators
3+
page_title: Setting the Operators | Telerik UI Filter HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI Filter HtmlHelper for ASP.NET Core and learn how to select its available filter operators."
5+
slug: htmlhelpers_filter_aspnetcore_choose_operators
6+
position: 2
7+
---
8+
9+
# Setting the Operators
10+
11+
The Filter provides options for defining which filter operators will be displayed in the filtering drop-down by using the `.Operators()` option.
12+
13+
The following example demonstrates how to set the `equals` and `contains` filter operators to the string fields and the `greater than` and `less than` filter operators to the numerical fields.
14+
15+
```View
16+
<script type="text/x-kendo-template" id="itemTemplate">
17+
<li>
18+
<strong>#= Name #</strong>, aged #= Age #, is on vacation: #= IsOnLeave #
19+
</li>
20+
</script>
21+
22+
@(Html.Kendo().DataSource<SampleData>()
23+
.Name("dataSource1")
24+
.Ajax(d=>d.Read(r => r.Action("GetPeople", "Filter")))
25+
)
26+
27+
@(Html.Kendo().Filter<SampleData>()
28+
.Name("filter")
29+
30+
.Operators(o => // Define the custom texts for the operator names and the available operators.
31+
{
32+
o.String(s =>
33+
{
34+
s.Eq("Is Exactly");
35+
s.Contains("Partially Matches");
36+
});
37+
o.Number(n =>
38+
{
39+
n.Gte("Older Than");
40+
n.Lt("Younger Than");
41+
});
42+
})
43+
44+
.MainLogic(FilterCompositionLogicalOperator.And)
45+
.ExpressionPreview() // Shows a text preview of the filter expression.
46+
.ApplyButton() // Shows the built-in Apply button.
47+
.Fields(f => // Defining the fields is not mandatory. Otherwise, they will be taken from the data source schema.
48+
// If you define the fields, their names and types must match the data source definition.
49+
{
50+
f.Add(p=>p.Name).Label("Name");
51+
f.Add(p=>p.Age).Label("Age");
52+
f.Add(p=>p.IsOnLeave).Label("On Vacation");
53+
})
54+
.FilterExpression(f => { // Defining an initial filter expression is not required.
55+
f.Add(p => p.Age).IsGreaterThanOrEqualTo(30);
56+
f.Add(p => p.Name).Contains("Doe");
57+
})
58+
.DataSource("dataSource1")
59+
)
60+
61+
@(Html.Kendo().ListView<SampleData>()
62+
.Name("listView")
63+
.TagName("ul")
64+
.DataSource("dataSource1")
65+
.ClientTemplateId("itemTemplate")
66+
)
67+
68+
<script>
69+
$(document).ready(function () {
70+
// Apply filtering immediately after the helper initialization because an initial filter is set.
71+
$("#filter").getKendoFilter().applyFilter();
72+
});
73+
</script>
74+
```
75+
```Controller
76+
using Kendo.Mvc.Extensions;
77+
using Kendo.Mvc.UI;
78+
79+
public class FilterController : BaseController
80+
{
81+
public IActionResult GetPeople([DataSourceRequest]DataSourceRequest request)
82+
{
83+
var people = new List<SampleData>() {
84+
new SampleData() { Name = "Jane Doe", Age = 25, IsOnLeave = false },
85+
new SampleData() { Name = "John Doe", Age = 33, IsOnLeave = true },
86+
new SampleData() { Name = "John Smith", Age = 37, IsOnLeave = true },
87+
new SampleData() { Name = "Nathan Doe", Age = 42, IsOnLeave = false }
88+
};
89+
return Json(people.ToDataSourceResult(request));
90+
}
91+
92+
public IActionResult Index()
93+
{
94+
return View();
95+
}
96+
}
97+
```
98+
```Model
99+
public class SampleData
100+
{
101+
public int Age { get; set; }
102+
public string Name { get; set; }
103+
public bool IsOnLeave { get; set; }
104+
}
105+
```
106+
107+
## See Also
108+
109+
* [Basic Usage of the Filter HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/filter/index)
110+
* [Localization of Messages in the Filter HtmlHelper for ASP.NET Core]({%slug htmlhelpers_filter_aspnetcore_localization%})
111+
* [Server-Side API](/api/filter)

0 commit comments

Comments
 (0)