Hi all.
I've a simple confirm dialogue routine. I follow the examples in the documentation.
The code looks like:
protected async void OnNHibernateLogsChange()
{
bool confirm = await ActivateFilterConfirm(); // ask about
if (confirm || _showNHibernateLogs == false)
{
LoggerConfig.FilterNHibernateLogs = !_showNHibernateLogs;
string msg = _showNHibernateLogs ? L10n["NM-SHOWNHIBLOGS"] : L10n["NM-HIDENHIBLOGS"];
NotificationManager.ShowInfo(msg);
}
else
{
_showNHibernateLogs = !_showNHibernateLogs;
}
}
The problem is that the dialog box buttons don't have a text. It is not an styles issue. I've inspected and the generated div is empty.
Any ideas on what is going on?
Thanks.
The documentation states, "The prompt dialog returns a string
that the user enters when they press OK
, and null
when they press Cancel."
However I've discovered that null is returned when the user clicks cancel, and also when they click OK without entering anything. So I can't tell whether they clicked OK or cancel. If they click OK without entering anything, that's not valid in my scenario but I can't tell whether to validate it because maybe they clicked cancel.
Any way to determine which button was clicked?
Hello,
I am using Telerik Blazor components in an ASP.net Core MVC app as we are slowly migrating the application to Blazor. My component is inserted into a Razor view using the <component> tag helper.
Inside the component I have the <TelerikRootComponent> surrounding the contents, etc. The component works without any issues. I needed to add a confirmation dialog to use with grid's delete command. Unfortunately, the DialogFactory cascading parameter is always null and thus confirmation dialog cannot be shown. Please advise.
Hello,
how to prevent calling "OnParametersSet " multiple times when DialogFactory is used?
its firing 2-6 times per page opening. Without DialogFactory, its correct, only 1x.
Blazor server app. With PreRendering disabled.
Thanks
I am opening the dialog from a modal window is there a way to have the dialog disable/turn grey the modal window as well as the page. With the way it works now you can keep entering data on the modal window.