Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

fix: prevent NPE for client-side only grids #1111

Merged
merged 4 commits into from
Sep 9, 2020

Conversation

DiegoCardoso
Copy link

fix #1077

ItemCache#ensureSubCacheForScaledIndex method is changed by gridConnector, so it will make any grid on the page use the new implementation. That leads to a call from undefined object in case of a grid entirely defined on the client side needs to call this method.

This change stores the original implementation and calls it when the grid doesn't have a $connector object.

fix #1077

`ItemCache#ensureSubCacheForScaledIndex` method is changed by
gridConnector, so it will make any grid on the page use the new
implementation. That leads to a call from undefined object in case of a
grid entirely defined on the client side needs to call this method.

This change stores the original implementation and calls it when the
grid doesn't have a `$connector` object.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a tree grid from client side and another grid from server side causes javascript error
2 participants