Forum Discussion
Check if a sort event was triggered
- 6 years ago
Yes, VisualUpdateOptions.type is all you can use here.
There is no explicit event for sorting as a sort will trigger a re-query against the data model. As far as the visual is concerned, this is an update of all data, so will typically trigger an enum value of 2 (Data).
Note that if you implement sorting using the custom option, and manage via the properties pane, that property change will also trigger a re-query, and therefore the same condition as above can be used to manage that situation also.
Regards,
Daniel
Yes, VisualUpdateOptions.type is all you can use here.
There is no explicit event for sorting as a sort will trigger a re-query against the data model. As far as the visual is concerned, this is an update of all data, so will typically trigger an enum value of 2 (Data).
Note that if you implement sorting using the custom option, and manage via the properties pane, that property change will also trigger a re-query, and therefore the same condition as above can be used to manage that situation also.
Regards,
Daniel