-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IgbGrid] state-persistence - Reload causes ExpectedStartOfValueNotFound #135
Comments
From the stack the error actually originates from the |
@mddifilippo89 |
Thankyou @mddragnev this has now allowed us to save the grid state when the user navigates away from the page. |
Hey @t-johnson, |
@dkamburov thanks once again! |
@t-johnson How many times your |
Thank you, I've confirmed your recommendations work. However my sample above is using AfterRenderAsync and I get this argument exception on RegisterLocationChangingHandler |
It seems that the DataChanged event is fired twice when there is data in the collection that is bound. However if there is no elements in the bound collection, the DataChanged event is not fired at all... this makes it a little challenging to restore the state of the columns. @dkamburov Can you suggest another event that i might be able to use to get this working in the current release? |
@mddifilippo89 The argument type inside
|
@t-johnson |
The problem we have with the 'DataChanged' event is that it does not fire if the Data is an empty array. |
@t-johnson Unfortunately,
|
In Blazor WASM the error is explicit (See screenshot below)
In Blazor Server the issue will lead to a different console error but the app will throw a similar error:
JsonReaderException: 'e' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
WASM
https://www.infragistics.com/blazor-client/grids/grid/state-persistence-main
https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext/samples/grids/grid/state-persistence-main
Server:
Download attached Server sample
IgniteIgbGridSample2 (2).zip
Run sample, click Fetch Data in the nav tree
Move a column to a different position
Navigate away from the sample by clicking Counter or Home
Click back to Fetch Data
Click Restore Grid State
Here is a comparison of the two WASM / Server side by side (WASM left, Server Right) including the server's stacktrace
The text was updated successfully, but these errors were encountered: