Need a special offer?Find out if your project fits.
+

How to handle sort event

Resolved
Tiago asked on September 14, 2021

Hello,
 
I wanted to know how I can check if the user filtered or ordered something on the grid, I noticed that there is a event for that, reportchange, but I can't tell if it was one of these options or another event was performed. Is there any parameter for this event that I can check the user action?
 
Best regards,
Tiago

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster September 15, 2021

Hello, Tiago,
 
Thank you for posting on our forum.
 
You are right about the fact that the reportchange event does not provide information about what part of the report was changed.
Instead, we suggest storing the previous report version and check the differences you are interested in after the reportchange event is triggered. You can retrieve a current report using the getReport method.
 
Please let us know if it helps.
 
Kind regards,
Illia

Please login or Register to Submit Answer