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

Cascading parameter on a razor component inside a Telerik window control - not getting a value set

6 Answers 423 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 28 Nov 2019, 02:08 AM

  Here is my situation -- I have a number of nested controls and I have a cascading value that encompasses all the controls.  When I put one of my nested components inside a Telerik window then the cascading parameter on said component does not work (it gets value of null). If I move my component just outside the Telerik window and nothing else -- then the parameter gets the correct value.

Is this a bug? Does the parameter not get a value in the control because the window's "visible property" is false initially which maybe prevents the property from being set properly? 

 

 

6 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Nov 2019, 08:59 AM

Hello Mark,

Could you take a look at the following KB articles and see whether they help:

If not, could you post a simple example of the problem you are facing so I can investigate and avoid guessing? You could base it on the snippets from the KB if it will be easier for you.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Mark
Top achievements
Rank 1
answered on 28 Nov 2019, 03:54 PM

I don't think either of the above is relevant to the situation.

I created a sample project based on the Telerik templates and recreated the issue. Is there somewhere I can upload a .zip file? It looks like I can only attach an image here.

 

0
Marin Bratanov
Telerik team
answered on 29 Nov 2019, 12:42 PM

Hello Mark,

A snippet similar to the KB should be 50ish lines and you can paste it here. To attach entire projects, you can open a private support ticket.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Mark
Top achievements
Rank 1
answered on 29 Nov 2019, 07:48 PM
I submitted a ticket.
1
Accepted
Marin Bratanov
Telerik team
answered on 02 Dec 2019, 10:26 AM

Thank you for the sample, Mark. It helped a lot.

Here's the KB with the pertinent information for anyone else having a similar problem: https://docs.telerik.com/blazor-ui/knowledge-base/window-cascading-parameter-null.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Mark
Top achievements
Rank 1
answered on 02 Dec 2019, 02:58 PM

Thanks Marin. That totally makes sense now. 

Cheers

Mark

Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or