Forum Discussion
persist properties without reloading?
Hi jprdynamicapps,
If you want to use persistProperties, you can't avoid an update being called, as the properties need to be re-enumerated. However, you can check options.type in your update method to determine the kind of operation being carried out and route your logic accordingly.
If it's VisualUpdateType.All or VisualUpdateType.Data, then this indicates the dataView should be re-checked. Otherwise, you should be able to leave it unprocessed. Here's an example of how you might handle this using one of my visuals, if you want to take a look.
It's been a while since I've looked at this in detail, but IIRC manually changing a property in the pane will definitely flag a change in a visual's dataView, but persistProperties might not. If it does, then your idea of a checksum may be how to proceed for subsequent updates, if/when they fire.
Hopefully this provides you with some ideas. Good luck!
Daniel