We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

StateHasChanged in Event RowSelected

Thread ID:

Created:

Updated:

Platform:

Replies:

146075 Jul 18,2019 05:05 PM UTC Jul 19,2019 05:56 AM UTC Blazor 2
loading
Tags: Grid
Michael Sandler
Asked On July 18, 2019 05:05 PM UTC

Im using the newest version. 
I would like to bind a text from a field to the grid RowSelected event.
Something like:

<h1>@text</h1>

On the RowSelected event from grid i want to change the text variable and call StateHasChanged();
Also if i only call StateHasChanged in that event, the grid is not useable any more.
I think i had similar issiues in other event but im not 100 percent shure...

Thanks and regards
Michael

Michael Sandler
Replied On July 18, 2019 05:14 PM UTC

I can also verify that the same problem exists on OnRecordDoubleClick Event and OnToolbarClick evnt.
I think this problem is in every event called by the grid.

Regards Michael

Vignesh Natarajan [Syncfusion]
Replied On July 19, 2019 05:56 AM UTC

Hi Michael,  

Greeting from Syncfusion support.  

Query: “On the RowSelected event from grid i want to change the text variable and call StateHasChanged(); Also if i only call StateHasChanged in that event, the grid is not useable any more.” 

As per your suggestion we have prepared a sample in our latest Nuget version (17.2.0.34) and we are not able to reproduce the reported issue at our end. We are able to modify the text using OnToolbarClick, RowSelected and OnRecordDoubleClick events.  

For your convenience we have prepared a sample which can be downloaded from below link  


Refer the below screenshot for the output 

  1. During the initial rendering.
 
 
 
  1. On performing certain actions.
 
 
 

After referring the sample if you are still facing the reported issue, kindly get back to us with following details.  

  1. Share the grid rendering code.
  2. Share your Nuget version.
  3. Ensure to modify the version details to latest (17.2.34) where you have referred the script and css files.
  4. If possible try to reproduce the reported issue in provided sample and get back to us.

Regards, 
Vignesh Natarajan. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon