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

7 posts, 1 answers
  1. Mark
    Mark avatar
    10 posts
    Member since:
    May 2019

    Posted 27 Nov 2019 Link to this post

      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? 

     

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5528 posts

    Posted 28 Nov 2019 Link to this post

    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
  3. Mark
    Mark avatar
    10 posts
    Member since:
    May 2019

    Posted 28 Nov 2019 in reply to Marin Bratanov Link to this post

    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.

     

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5528 posts

    Posted 29 Nov 2019 Link to this post

    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
  5. Mark
    Mark avatar
    10 posts
    Member since:
    May 2019

    Posted 29 Nov 2019 in reply to Marin Bratanov Link to this post

    I submitted a ticket.
  6. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    5528 posts

    Posted 02 Dec 2019 Link to this post

    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
  7. Mark
    Mark avatar
    10 posts
    Member since:
    May 2019

    Posted 02 Dec 2019 in reply to Marin Bratanov Link to this post

    Thanks Marin. That totally makes sense now. 

    Cheers

    Mark

Back to Top