File tree Expand file tree Collapse file tree 6 files changed +26
-6
lines changed
_contentTemplates/dropdowns Expand file tree Collapse file tree 6 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 66| ` Close ` | Closes the popup. |
77| ` FocusAsync ` | Focuses the main element of the component. Always ` await ` this call, as it relies on ` JSInterop ` . |
88| ` Open ` | Opens the popup. |
9+ | ` Refresh ` | Re-renders the component popup. |
910#end
Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ Add a reference to the component instance to use the [AutoComplete's methods](/b
151151 private void OpenPopup()
152152 {
153153 AutoCompleteRef.Open();
154+
155+ AutoCompleteRef.Refresh();
154156 }
155157}
156158````
Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ Add a reference to the component instance to use the [ComboBox's methods](/blazo
151151 private void OpenPopup()
152152 {
153153 ComboBoxRef.Open();
154+
155+ ComboBoxValue = Suggestions.First();
156+
157+ ComboBoxRef.Refresh();
154158 }
155159}
156160````
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ Add a reference to the component instance to use the [DropDownList's methods](/b
136136<TelerikDropDownList @ref="@DropDownListRef"
137137 Data="@DropDownListData"
138138 @bind-Value="@DropDownListValue"
139- Width="300px"/>
139+ Width="300px" />
140140
141141<TelerikButton OnClick="@OpenPopup">Open Popup</TelerikButton>
142142
@@ -150,6 +150,10 @@ Add a reference to the component instance to use the [DropDownList's methods](/b
150150 private void OpenPopup()
151151 {
152152 DropDownListRef.Open();
153+
154+ DropDownListValue = DropDownListData.First();
155+
156+ DropDownListRef.Refresh();
153157 }
154158}
155159````
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ The table below lists the MultiComboBox methods. Also consult the [MultiColumnCo
179179| ` FocusAsync ` | Focuses the component textbox. |
180180| ` Open ` | Opens the component dropdown. |
181181| ` Rebind ` | [ Refreshes the component data] ({%slug common-features-data-binding-overview%}#refresh-data). |
182+ | ` Refresh ` | Re-renders the component popup. |
182183
183184> caption Using MultiColumnComboBox methods
184185
@@ -207,18 +208,22 @@ The table below lists the MultiComboBox methods. Also consult the [MultiColumnCo
207208 private void Open()
208209 {
209210 MultiColumnComboRef.Open();
211+
212+ SelectedProduct = 3;
213+
214+ MultiColumnComboRef.Refresh();
210215 }
211216
212217 protected override void OnInitialized()
213218 {
214219 var rnd = new Random();
215220
216221 Products = Enumerable.Range(1, 30).Select(x => new Product()
217- {
218- Id = x,
219- Name = $"Product {x}",
220- Quantity = rnd.Next(0, 30)
221- }).ToList();
222+ {
223+ Id = x,
224+ Name = $"Product {x}",
225+ Quantity = rnd.Next(0, 30)
226+ }).ToList();
222227
223228 base.OnInitialized();
224229 }
Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ Add a reference to the component instance to use the [MultiSelect's methods](/bl
167167 private void OpenPopup()
168168 {
169169 MultiSelectRef.Open();
170+
171+ MultiSelectValue = new List<string>() { MultiSelectData.First() };
172+
173+ MultiSelectRef.Refresh();
170174 }
171175}
172176````
You can’t perform that action at this time.
0 commit comments