You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,71 +31,119 @@ How can I use the {{ site.framework }} AutoComplete component as an editor in an
31
31
The AutoComplete editor will provide a convenient list of options to hint the user of the available options. You can achieve this implementation through the following key steps:
32
32
33
33
1.[Define an InCell editable Grid]({% slug batchediting_grid_aspnetcore %}) and bind its column to the complex Model property **Person**.
2. Create a [custom editor template for the column]({% slug customediting_grid_aspnetcore %}) that contains an AutoComplete editor, which binds to remote data.
65
-
3. Configure the AutoComplete for [server-side filtering]({% slug htmlhelpers_autocomplete_filtering_aspnetcore %}).
66
-
4. Handle the [`Change` event](/api/kendo.mvc.ui.fluent/datasourceeventbuilder#changesystemstring) of the Grid's DataSource and update the **Person** field of the respective record when its current value is changed through the AutoComplete editor. Then, trigger the [`closeCell()`](https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/closecell) method of the Grid to exit edit mode.
67
-
68
-
```PersonFieldEditor.cshtml
69
-
@(Html.Kendo().AutoComplete()
70
-
.Name("Person")
71
-
.DataTextField("Name")
72
-
.DataSource(dataSource => dataSource.Read(read => read.Action("GetAutocomplete", "Home", new { Area = "GridEditingAutoCompleteNewItem" }).Data("onAdditionalData")).ServerFiltering(true))
73
-
.Delay(500)
74
-
.HighlightFirst(true)
75
-
)
76
-
```
77
-
```js
78
-
<script type="text/javascript">
79
-
// handle the Grid's DataSource Change event
80
-
functiononChange(e) {
81
-
// the Change event provides the action argument to show the type of the operation
1. Create a [custom editor template for the column]({% slug customediting_grid_aspnetcore %}) that contains an AutoComplete editor, which binds to remote data.
93
+
1. Configure the AutoComplete for [server-side filtering]({% slug htmlhelpers_autocomplete_filtering_aspnetcore %}).
1. Handle the [`Change`](/api/kendo.mvc.ui.fluent/datasourceeventbuilder#changesystemstring) event of the Grid's DataSource and update the **Person** field of the respective record when its current value is changed through the AutoComplete editor. Then, trigger the [`closeCell()`](https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/closecell) method of the Grid to exit edit mode.
124
+
125
+
```JS
126
+
<script type="text/javascript">
127
+
// Handle the Grid's DataSource Change event.
128
+
function onChange(e) {
129
+
// The Change event provides the action argument for the type of the operation.
To see the complete example, refer to the ASP.NET MVC project on how to [add a new value to the Grid records](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Areas/GridEditingAutoCompleteNewItem) when the Grid uses the Telerik UI AutoComplete as an editor. {% if site.core %}You can use this as a starting point to configure the same behavior in an ASP.NET Core project.{% endif %}
Copy file name to clipboardExpand all lines: docs-aspnet/knowledge-base/date-picker-masked-grid.md
+69-66Lines changed: 69 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,75 +29,78 @@ How can I add a mask to the Telerik UI DatePicker?
29
29
> The DatePicker does not officially support the suggested approach and its implementation might lead to undesired side-effects. Starting with version R2 2017, the DatePicker supports the [`DateInput`](/api/kendo.mvc.ui.fluent/datepickerbuilder#dateinput) property, which provides a built-in mask.
30
30
31
31
## Solution
32
-
Include the following script before the DatePicker declaration.
0 commit comments