This is a migrated thread and some comments may be shown as answers.

CascadingParameter collision?

4 Answers 208 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Marc Simkin
Top achievements
Rank 2
Iron
Veteran
Iron
Marc Simkin asked on 31 Mar 2021, 01:42 PM
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?

4 Answers, 1 is accepted

Sort by
0
Accepted
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
answered on 06 Apr 2021, 07:45 AM

 

This works:

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

0
Marc Simkin
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 06 Apr 2021, 07:49 AM
It should work.  The issue, if you already have another cascading parameter that is not named. It is just bad form for Telerik to relay on being the only unnamed cascading parameter.
0
Accepted
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
answered on 06 Apr 2021, 07:59 AM

I have to use two cascading parameters and have no problems:

[CascadingParameter]
public DialogFactory Dialogs { get; set; }
[CascadingParameter]
private string ip { get; set; }

 

0
Marin Bratanov
Telerik team
answered on 06 Apr 2021, 08:22 AM

Hello Marc,

We are not aware of problems with that and what Matthias said should be the case. If you are still having issues with that, I recommend you isolate the Telerik problem to a small sample and send it to us in a support ticket so we can review it.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Dialog
Asked by
Marc Simkin
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Marc Simkin
Top achievements
Rank 2
Iron
Veteran
Iron
Marin Bratanov
Telerik team
Share this question
or