Base solution for your next web application
Open Closed

Pick Modal not Refreshing #6145


User avatar
0
mdframe created

We recently demoed the product we are developing with ASP.NET Zero and found that any of the Pick Modal's generated by the RAD tool cached all information and the subsequent usage of the Pick were not refreshed. This was a global issue with any of the foreign tables. How do I clear the modal so it will refresh each time the Pick is clicked and shouldn't this be the default in the RAD tool?

Thanks.


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mdframe

    Could it be a browser extension filling the modal fields ? I faced a similar problem on a different website. RAD Tool clears the fields when you open the modal.

  • User Avatar
    0
    mdframe created

    @ismcagdas we thought about that as well and have been able to replicate on Mac and Windows. We have seen a number of modals keep previous values on reopen and PrimeNG tables not refreshing. What code is taking care of it today from the RAD tool? Maybe we modified something without being aware but this is multiple modals.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @mdframe

    It should be done in the onShown method of the modal component. You can compare one with the other Modal's code and see if there are any difference.

  • User Avatar
    0
    mdframe created

    @ismcagdas

    I am using v6.3.1 for Asp.Net Core with angular and the RAD tool does not generate any methods called onShown. They only have show which creates a new DTO entity but never clears the modal data. We see most modals retain all screen field values between calls as the generated code is only performing show and hide not resets or empty.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mdframe,

    Thanks. We will test it again and inform you about the result.

  • User Avatar
    0
    mdframe created

    Any updates? The client is complaining they have to change the record count each time the modal is opened to get the grid to refresh. This is occurring in Mac books.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mdframe

    We couldn't reproduce this problem on our environment. Can we arrange a remote meeting via TeamViewer so you can show us this problem on your computer ?

    If this is convinient for you, please send an email to [email protected] to arrange an online meeting time.