When Adaptive = true, changing the collection of buttons seems to "break" the adaptive calculation. The Toolbar fails to determine what are the buttons to show in the main element and what are the buttons to show in the pop-up: https://blazorrepl.telerik.com/wSubOWlS08FLz7aZ54
===
ADMIN EDIT
For the time being, a possible workaround is to force the component to refresh when you change the buttons. For that purpose, you can dispose it and re-initialize it after some delay. Here is a runnable sample: https://blazorrepl.telerik.com/QIOFuCvS400o5tfL34.
Iam forgot the key part of the hack in previous post:
protected override async Task OnParametersSetAsync()
{
TOPBarID = Guid.NewGuid();
...
...
}
-- it helphing a lot, but not solving the problem completely. Maybe it help someone else.
Hi,
with this issue the toolbar is not usable in "real world" data driven apps.
Even fiddlering with "<TelerikToolBar Size="@ThemeConstants.ToolBar.Size.Large" Adaptive="true" @key="TOPBarID">" and key items, and VISIBLE at items level, doesnt solving the problem.
Admin tip with "delay" has another issue:
- lot of rerendering, and items are at the end reorganized in "random" possitions. Some of them are completely missing(which is the worst scenario)
Simillar setup with mixed static and dynamic items, with hotfix visible=....
the goal was to keep all collection items "rendered" butt hidden at component level = also nogo.
<TelerikToolBar Size="@ThemeConstants.ToolBar.Size.Large" Adaptive="true" @key="TOPBarID">
is there any other option like:
TelerikDialog.Refresh(); ?