Telerik Forums
UI for Blazor Forum
2 answers
324 views

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. 


Mario
Top achievements
Rank 1
Iron
 answered on 19 Oct 2021
1 answer
245 views

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?

 

Nadezhda Tacheva
Telerik team
 answered on 22 Sep 2021
1 answer
138 views
using jquery components we can fill the textbox with predefined text, can we have the same behaviour in blazor prompt?
Marin Bratanov
Telerik team
 answered on 29 Aug 2021
1 answer
1.4K+ views

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.

Dimo
Telerik team
 answered on 23 Jun 2021
1 answer
1.7K+ views

Hello,

 how to prevent calling "OnParametersSet " multiple times when  DialogFactory is used?

[CascadingParameter]
public DialogFactory Dialogs { get; set; }

 

its firing 2-6 times per page opening. Without DialogFactory,  its correct, only 1x.
Blazor server app. With PreRendering disabled.

Thanks

Nadezhda Tacheva
Telerik team
 answered on 19 May 2021
2 answers
1.1K+ views

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.

 

Marin Bratanov
Telerik team
 answered on 13 Apr 2021
3 answers
374 views
I'm testing the confirm dialog. Can I define the Cancel home button by default
Marin Bratanov
Telerik team
 answered on 06 Apr 2021
4 answers
309 views
The new Dialog component is passed as a cascading parameter.  Is there a way to name the parameter to prevent collisions with out cascading parameters?
Marin Bratanov
Telerik team
 answered on 06 Apr 2021
2 answers
1.6K+ views
How can we customize the dialogs? Specifically the color of the buttons and the text of the buttons in the confirmation dialog. 
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
 answered on 06 Apr 2021
Narrow your results
Selected tags
Tags
+104 more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?