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
1 change: 1 addition & 0 deletions _contentTemplates/dropdowns/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
| `Close` | Closes the popup. |
| `FocusAsync` | Focuses the main element of the component. Always `await` this call, as it relies on `JSInterop`. |
| `Open` | Opens the popup. |
| `Refresh` | Re-renders the component popup. |
#end
2 changes: 2 additions & 0 deletions components/autocomplete/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ Add a reference to the component instance to use the [AutoComplete's methods](/b
private void OpenPopup()
{
AutoCompleteRef.Open();

AutoCompleteRef.Refresh();
}
}
````
Expand Down
4 changes: 4 additions & 0 deletions components/combobox/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ Add a reference to the component instance to use the [ComboBox's methods](/blazo
private void OpenPopup()
{
ComboBoxRef.Open();

ComboBoxValue = Suggestions.First();

ComboBoxRef.Refresh();
}
}
````
Expand Down
6 changes: 5 additions & 1 deletion components/dropdownlist/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Add a reference to the component instance to use the [DropDownList's methods](/b
<TelerikDropDownList @ref="@DropDownListRef"
Data="@DropDownListData"
@bind-Value="@DropDownListValue"
Width="300px"/>
Width="300px" />

<TelerikButton OnClick="@OpenPopup">Open Popup</TelerikButton>

Expand All @@ -150,6 +150,10 @@ Add a reference to the component instance to use the [DropDownList's methods](/b
private void OpenPopup()
{
DropDownListRef.Open();

DropDownListValue = DropDownListData.First();

DropDownListRef.Refresh();
}
}
````
Expand Down
15 changes: 10 additions & 5 deletions components/multicolumncombobox/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ The table below lists the MultiComboBox methods. Also consult the [MultiColumnCo
| `FocusAsync` | Focuses the component textbox. |
| `Open` | Opens the component dropdown. |
| `Rebind` | [Refreshes the component data]({%slug common-features-data-binding-overview%}#refresh-data). |
| `Refresh` | Re-renders the component popup. |

>caption Using MultiColumnComboBox methods

Expand Down Expand Up @@ -207,18 +208,22 @@ The table below lists the MultiComboBox methods. Also consult the [MultiColumnCo
private void Open()
{
MultiColumnComboRef.Open();

SelectedProduct = 3;

MultiColumnComboRef.Refresh();
}

protected override void OnInitialized()
{
var rnd = new Random();

Products = Enumerable.Range(1, 30).Select(x => new Product()
{
Id = x,
Name = $"Product {x}",
Quantity = rnd.Next(0, 30)
}).ToList();
{
Id = x,
Name = $"Product {x}",
Quantity = rnd.Next(0, 30)
}).ToList();

base.OnInitialized();
}
Expand Down
4 changes: 4 additions & 0 deletions components/multiselect/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ Add a reference to the component instance to use the [MultiSelect's methods](/bl
private void OpenPopup()
{
MultiSelectRef.Open();

MultiSelectValue = new List<string>() { MultiSelectData.First() };

MultiSelectRef.Refresh();
}
}
````
Expand Down