-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Expanding multiple rows cleans the row expand view of the earlier expanded rows #546
Comments
Sorry but there's nothing I can do for that, I already spent too much time on this. If you scroll a bit further and come back it will probably re-render. Internally there's a function that tries to detect if you are further away from what the user sees on the screen, and when it detects that the given row detail(s) comes back in the view then it tries to re-render them. You can perhaps try to call The calculation happens by the I'll say it again, I won't spend more time on this but if you find a fix then I'll be happy to receive a PR |
If you want to troubleshoot the lib, it mostly happen in this method calculateOutOfRangeViewsSimplerVersion and checkIsRowOutOfViewportRange. If you find a solution, that would be great, most probably in the core lib SlickGrid, probably no changes to do in Angular-Slickgrid. |
Hi, I tried the things you mentioned but couldn't get it to work. I'll keep trying and searching and will create a PR if I'm able to fix it. |
If you could use only a single row to be opened, I believe there's no issue with that one and it's only an issue when you use multiple, so if you could do that then go with Sorry I couldn't help with this, I just don't have time to invest in this at that point |
@rajenme The new PR helps quite a bit, but I still see some of the rows not refreshing at some occasion but a lot less than now. So my question is, did you use |
(#550) - refresh of each row detail not happening correctly with "datasetIdPropName", this was due to the fact that the View is saved as a "CreatedView" interface and that is kept with "id" not with "datasetIdPropName"
- it seems that when trying to find the DOM element of the row detail, we should always use the last one instead of the first one found - final fix for issue #546
I actually found the issue, and the last fix in PR #552 seems to finally make the Row Detail work in every use cases. |
@rajenme Please upvote ⭐ if you haven't already. |
I'm submitting a Bug report
Your Environment
Describe the Bug
I'm facing a issue with the row detail feature, when I expand multiple rows and then come back to the earlier ones, they become blank.
I checked on the official demo page here and the issue persist there too.
Steps to Reproduce
Before expanding another row:
After expanding another row:
Expected Behavior
All the expanded rows should keep their view data and should not go blank.
Current Behavior
Currently earlier rows go blank after opening multiple rows and coming back to earlier ones.
Possible Solution
It seems the library is caching the view or is not always able to maintain multiple view component. Although, I'm not sure. I have tried to toggle these fields and used multiple combinations of these in row detail view object,
rowDetailView: {
...
loadOnce: true,
saveDetailViewOnScroll: false,
useSimpleViewportCalc: true,
singleRowExpand: false,
...
}
Code Sample
https://ghiscoding.github.io/Angular-Slickgrid/#/rowdetail
The text was updated successfully, but these errors were encountered: