Component not rerendering when in the applicaton (top) bar.

Hi there.

I Have two sfTextBoxes, one in the body section of blazor and one inside the application bar :
<SfTextBox Value="@sessionGlobals.MainMessage" ></SfTextBox>

By altering @sessionGlobals.MainMessage (by pressing 'Play' button) the Value in the body section is re-rendered but not in the application bar.

To re-render the component in the application bar I must select a different page in the navigation menu.

StateHasChanged() is not helping either.

What am I doing wrong?


Attachment: BlazorApp1_4554386c.rar

4 Replies

SP Sureshkumar P Syncfusion Team April 22, 2022 02:33 PM UTC

We will validate the requirement in our component. We update you in two business days (April 26th, 2022).



SP Sureshkumar P Syncfusion Team April 27, 2022 12:13 PM UTC

We have modified the attached sample using a state container. To know more about the state container please refer to the below documentation link.


Documentation link: https://chrissainty.com/3-ways-to-communicate-between-components-in-blazor/


Find the modified sample in the attachment.


Attachment: BlazorApp1_b52e9111.zip


RI Rigakis April 27, 2022 11:43 PM UTC

Works like a charm!!!

Thanks a lot!



SP Sureshkumar P Syncfusion Team April 28, 2022 05:45 AM UTC

Rigakis,


Thanks for your update.


Regards,

Sureshkumar P


Loader.
Up arrow icon