Hi,
I have a query, while the filter pop up is kept opened and any update is recieved , it closes the filter pop up on its own(as filterClose event is called behind the scenes). In our case this is causing problem as it is realtime data which keeps updating , as such whenever one Opens filter Pop up to filter and update comes it Closes the filter pop-up which is some what weird. Can we restrict filterClose event on UpdateData ??
Or Is this desired behaviour, please help.
Thanks in advance.
Hello, Kiran!
Thank you for raising a ticket.
Kindly note that Flexmonster's filter pop-up depends on a certain field. This field can be removed, or its members may be changed after the updateData
API call execution. Closing the filter after the update allows handling such corner cases.
We recommend using the openFilter
method inside the reportcomplete
event handler to reopen the filter pop-up after the data was successfully updated. The information about the last opened filter can be taken from the filteropen
event's parameters.
Hope you will find the suggested approach helpful.
Best Regards,
Maksym
Hi,
Thanks for the solution, however this clearly blinks as it closes and again opens through reportcomplete event. It would be better if any way we bypass filterClose on updateData, instead of filteropen to be called after filterClose.
There are series of realtime updates due to which this solution is not feasible for us.
https://jsfiddle.net/0tqbxfsz/1/
Thanks & Regards,
Kiran Bangar
Hi, Kiran!
Thank you for the reply.
Please note that there are currently no ways to prevent the filter pop-up from closing after the updateData
execution since this method reloads the component. As another workaround, we suggest delaying the updateData
execution when the filter pop-up is opened. You could use the filteropen and filterclose events to check the state of the filter view.
Hope this helps.
Best Regards,
Maksym