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
The component supports different popup rendering depending on the screen size. [Read more about the Adaptive Rendering functionality and how to enable it...]({%slug adaptive-rendering%})
3
+
#end
4
+
5
+
#value-changed
6
+
> If [`AdaptiveRendering`]({%slug adaptive-rendering%}) is enabled, on small and medium devices `ValueChanged` will fire only when the user clicks the confirmation button in the action sheet.
description: Explore how the components with popup elements can react to the changes in the
5
+
slug: adaptive-rendering
6
+
tags: telerik,blazor,adaptive,rendering,mobile
7
+
published: True
8
+
position: 0
9
+
---
10
+
11
+
# Adaptive Rendering
12
+
13
+
Telerik UI for Blazor supports adaptive rendering for the components that incorporate popup elements. This functionality allows the component to adapt to the screen size by providing different rendering of the popup element based on the screen dimensions.
14
+
15
+
>caption In this article:
16
+
17
+
*[Supported components](#supported-components)
18
+
*[Basics](#basics)
19
+
*[Rendering specifics](#rendering-specifics)
20
+
*[Limitations](#limitations)
21
+
22
+
## Supported components
23
+
24
+
The adaptive rendering functionality is supported by the following components:
When you set the `AdaptiveMode` to `Auto`, the component will take the screen size into consideration to use the appropriate rendering. The different rendering targets the popup element of the component and how it will be displayed to the user.
57
+
58
+
Three breakpoints define the rendering options as follows:
**Dimensions** | up to 500px | 501px to 768px | over 768px |
65
+
**Rendering** | The popup is rendered as a fullscreen action sheet. | The popup is rendered as an action sheet docked to the bottom of the screen. | The popup is rendered as an animation container docked to the main element of the component. |
66
+
67
+
## Limitations
68
+
69
+
* Custom values - some of the listed components allow custom values (for example, [ComboBox]({%slug components/combobox/custom-value%}), [MultiColumnComboBox]({%slug multicolumncombobox-custom-value%})). This feature is not compatible with `AdaptiveMode.Auto`.
Copy file name to clipboardExpand all lines: components/autocomplete/overview.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,10 @@ The Blazor AutoComplete @[template](/_contentTemplates/dropdowns/features.md#gro
68
68
69
69
@[template](/_contentTemplates/dropdowns/features.md#virtualization)[Read more about the Blazor AutoComplete virtualization...]({% slug autocomplete-virtualization %})
The Blazor AutoComplete provides various parameters that allow you to configure the component:
@@ -76,20 +80,22 @@ The Blazor AutoComplete provides various parameters that allow you to configure
76
80
77
81
| Parameter | Type | Description |
78
82
| ----------- | ----------- | -------|
79
-
| `Data` | `IEnumerable<TItem>` | allows you to provide the data source. Required.
80
-
| `DebounceDelay` | `int` <br/> 150 | Time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries.
83
+
|`AdaptiveMode`|`AdaptiveMode` <br /> (`None`) | The [adaptive mode]({%slug adaptive-rendering%}) of the component. |
84
+
|`Data`|`IEnumerable<TItem>`| allows you to provide the data source. Required. |
85
+
|`DebounceDelay`|`int` <br/> 150 | Time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries. |
81
86
|`Enabled`|`bool`| Whether the component is enabled. |
82
87
|`Filterable`|`bool`| Whether [filtering]({%slug multiselect-filter%}) is enabled for the end user (suggestions will get narrowed down as they type). |
83
88
|`FilterOperator`|`StringFilterOperator` <br /> (`StartsWith`) | The string operation that will be used for [filtering]({%slug multiselect-filter%}). |
84
89
|`Id`|`string`| Renders as the `id` attribute on the `<input />` element, so you can attach a `<label for="">` to the input.|
85
-
|`TItem`|`Type`| The type of the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object.|
90
+
|`TItem`|`Type`| The type of the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object. |
91
+
|`Title`|`string`| The title text rendered in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `Auto`]({%slug adaptive-rendering%}). |
86
92
|`Value` and `bind-Value`|`string`| Get/set the value of the component, can be used for binding. Use the `@bind-Value` syntax for two-way binding, for example, to a variable of your own. The `Value` must be a `string`.|
87
-
|`ValueField`|`string` <br /> (`Value`) | The name of the field from the model that will be shown as hints to the user. Not required when binding to a simple list of strings.|
88
-
|`TabIndex`|`int?`| Maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key.|
89
-
|`ClearButton`|`bool`| Whether the user will have the option to clear the selected value with a button on the input. When it is clicked, the `Value` will be updated to `string.Empty`.|
90
-
|`Enabled`|`bool`| Use this Boolean property to render a disabled Blazor AutoComplete component until certain requirements are met.|
91
-
|`MinLength`|`int`| How many characters the text has to be before the suggestions list appears. Cannot be `0`. Often works together with [filtering]({%slug autocomplete-filter%}).|
92
-
|`Placeholder`|`string`| The text the user sees as a hint when there is no text in the input. In order for it to be shown, the `Value` parameter should be set to the default value for string (`null`).|
93
+
|`ValueField`|`string` <br /> (`Value`) | The name of the field from the model that will be shown as hints to the user. Not required when binding to a simple list of strings.|
94
+
|`TabIndex`|`int?`| Maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key.|
95
+
|`ClearButton`|`bool`| Whether the user will have the option to clear the selected value with a button on the input. When it is clicked, the `Value` will be updated to `string.Empty`.|
96
+
|`Enabled`|`bool`| Use this Boolean property to render a disabled Blazor AutoComplete component until certain requirements are met.|
97
+
|`MinLength`|`int`| How many characters the text has to be before the suggestions list appears. Cannot be `0`. Often works together with [filtering]({%slug autocomplete-filter%}).|
98
+
|`Placeholder`|`string`| The text the user sees as a hint when there is no text in the input. In order for it to be shown, the `Value` parameter should be set to the default value for string (`null`).|
Copy file name to clipboardExpand all lines: components/combobox/overview.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,9 @@ The Blazor ComboBox @[template](/_contentTemplates/dropdowns/features.md#groupin
69
69
70
70
@[template](/_contentTemplates/dropdowns/features.md#virtualization)[Read more about the Blazor ComboBox virtualization...]({% slug combobox-virtualization %})
@@ -78,21 +81,23 @@ The Blazor ComboBox @[template](/_contentTemplates/dropdowns/features.md#groupin
78
81
79
82
| Parameter | Type | Description
80
83
| ----------- | ----------- | -----------|
81
-
| `AllowCustom` | `bool` | whether the user can enter [custom values]({%slug components/combobox/custom-value%}). If enabled, the `ValueField` must be a `string`.
82
-
| `ClearButton` | `bool` | whether the user will have the option to clear the selected value. When it is clicked, the `Value` will be updated to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, clearing the value will lead to a `0``Value`, so if there is an Item with `0` in its `ValueField` - issues may arise with its selection. This feature can often go together with `AllowCustom`.
83
-
| `Data` | `IEnumerable<TItem>` | allows you to provide the data source. Required.
84
-
| `DebounceDelay` | `int` <br/> 150 | Time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries.
85
-
| `Enabled` | `bool` | whether the component is enabled.
86
-
|`Filterable` | `bool` | whether [filtering]({%slug components/combobox/filter%}) is enabled for the end user.
87
-
| `FilterOperator` | `StringFilterOperator` <br /> (`StartsWith`) | the method of [filtering]({%slug components/combobox/filter%}) the items.
88
-
| `Id` | `string` | renders as the `id` attribute on the `<input />` element, so you can attach a `<label for="">` to the input.
89
-
| `Placeholder` | `string` | the text the user sees as a hint when no item is selected. In order for it to be shown, the `Value` parameter should be set to a default value depending on the type defined in the `ValueField` parameter. For example, `0` for an `int`, and `null` for an `int?` or `string`. You need to make sure that it does not match the value of an existing item in the data source.
90
-
| `TItem` | `Type` | the type of the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object.
91
-
|`TValue`|`Type`| the type of the value field from the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object. The type of the values can be:<br /> - `number` (such as `int`, `double`, and so on)<br /> - `string`<br /> - `Guid`<br /> - `Enum`|
92
-
| `TextField` | `string` <br /> (`Text`)| the name of the field from the model that will be shown to the user.
93
-
| `ValueField` | `string` <br /> (`Value`) | the name of the field from the model that will be the underlying `value`.
94
-
| `Value` and `bind-Value` | `TValue` | get/set the value of the component, can be used for binding. If you set it to a value allowed by the model class value field, the corresponding item from the data collection will be pre-selected. Use the `bind-Value` syntax for two-way binding, for example, to a variable of your own.
95
-
| `TabIndex` | `int?` | maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key.
84
+
|`AdaptiveMode`|`AdaptiveMode` <br /> (`None`) | The [adaptive mode]({%slug adaptive-rendering%}) of the component. |
85
+
|`AllowCustom`|`bool`| whether the user can enter [custom values]({%slug components/combobox/custom-value%}). If enabled, the `ValueField` must be a `string`. |
86
+
|`ClearButton`|`bool`| whether the user will have the option to clear the selected value. When it is clicked, the `Value` will be updated to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, clearing the value will lead to a `0``Value`, so if there is an Item with `0` in its `ValueField` - issues may arise with its selection. This feature can often go together with `AllowCustom`. |
87
+
|`Data`|`IEnumerable<TItem>`| allows you to provide the data source. Required. |
88
+
|`DebounceDelay`|`int` <br/> 150 | Time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries. |
89
+
|`Enabled`|`bool`| whether the component is enabled. |
90
+
|`Filterable`|`bool`| whether [filtering]({%slug components/combobox/filter%}) is enabled for the end user. |
91
+
|`FilterOperator`|`StringFilterOperator` <br /> (`StartsWith`) | the method of [filtering]({%slug components/combobox/filter%}) the items. |
92
+
|`Id`|`string`| renders as the `id` attribute on the `<input />` element, so you can attach a `<label for="">` to the input. |
93
+
|`Placeholder`|`string`| the text the user sees as a hint when no item is selected. In order for it to be shown, the `Value` parameter should be set to a default value depending on the type defined in the `ValueField` parameter. For example, `0` for an `int`, and `null` for an `int?` or `string`. You need to make sure that it does not match the value of an existing item in the data source. |
94
+
|`TItem`|`Type`| the type of the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object. |
95
+
|`TValue`|`Type`| the type of the value field from the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object. The type of the values can be:<br /> - `number` (such as `int`, `double`, and so on)<br /> - `string`<br /> - `Guid`<br /> - `Enum`|
96
+
|`Title`|`string`| The title text rendered in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `Auto`]({%slug adaptive-rendering%}). |
97
+
|`TextField`|`string` <br /> (`Text`)| the name of the field from the model that will be shown to the user. |
98
+
|`ValueField`|`string` <br /> (`Value`) | the name of the field from the model that will be the underlying `value`. |
99
+
|`Value` and `bind-Value`|`TValue`| get/set the value of the component, can be used for binding. If you set it to a value allowed by the model class value field, the corresponding item from the data collection will be pre-selected. Use the `bind-Value` syntax for two-way binding, for example, to a variable of your own. |
100
+
|`TabIndex`|`int?`| maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key. |
0 commit comments