Save and load state

1 Answer 305 Views
Grid
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Matthias asked on 16 Jul 2021, 09:19 AM

Hello,

if I serialize the grid-state and save it as a text-file, I get an incredible high table-width: 1772296985px - my workaround is to limit the tablke-width to max. 3000 px while saving and loading. The same with columns. Is there a bug?

Thank you!

 

 

Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
commented on 17 Jul 2021, 01:00 PM

Thank you for the quick response - obviously the template has changed. In newer applications, app { display: flex; } is no longer present. This also explains why the behavior did not occur in my test applications. Thank you very much for the hint. Unfortunately I can't remove app { display: flex; } as the layout would no longer be correct. But my workaround works quite well so far. So feel free to mark the question as answered.
Marin Bratanov
Telerik team
commented on 17 Jul 2021, 01:55 PM

Glad to see you've solved this! I moved my comment to an answer and marked it. Thanks!

1 Answer, 1 is accepted

Sort by
1
Accepted
Marin Bratanov
Telerik team
answered on 17 Jul 2021, 11:08 AM

I recommend opening a ticket where you can send us a reproducible sample of this. You can use basic samples from our state docs to ensure it is runnable and does not depend on other pieces of the project.

In the meantime, take a look at this article for a common reason that can cause the grid to actually have such a width: https://docs.telerik.com/blazor-ui/knowledge-base/grid-bootstrap-flex-width-issue

Tags
Grid
Asked by
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or