Skip to content

How can I update the Value of a CascadingValue after the first render? #834

Answered by icnocop
icnocop asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to set the properties of the component and re-render as follows:

            IRenderedComponent<DateTimeGridColumn> g = cut.FindComponent<DateTimeGridColumn>();
            g.Instance.UserTimeZoneInfo = TZConvert.GetTimeZoneInfo("America/Los_Angeles");

            cut.Render();

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@linkdotnet
Comment options

linkdotnet Aug 12, 2022
Maintainer Sponsor

@egil
Comment options

egil Aug 12, 2022
Maintainer

@linkdotnet
Comment options

linkdotnet Aug 12, 2022
Maintainer Sponsor

@linkdotnet
Comment options

linkdotnet Aug 12, 2022
Maintainer Sponsor

@linkdotnet
Comment options

linkdotnet Aug 12, 2022
Maintainer Sponsor

Answer selected by icnocop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants