Modal on Modal

4 posts, 0 answers
  1. Giampaolo
    Giampaolo avatar
    20 posts
    Member since:
    Mar 2020

    Posted 28 Apr Link to this post

    Hi

    I need to use a modal window with a grid inside that

    But I need to show a modal window on error when I edit items on grid

    Modal on Modal not work: the second window is not visible.

    Any solution ?

    Tnx

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5528 posts

    Posted 28 Apr Link to this post

    Hi Giampaolo,

    You can Follow the implementation of such a feature here: https://feedback.telerik.com/blazor/1407791-support-for-multiple-nested-modal-windows.

     

    Regards,
    Marin Bratanov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Giampaolo
    Giampaolo avatar
    20 posts
    Member since:
    Mar 2020

    Posted 28 Apr in reply to Marin Bratanov Link to this post

    OK tnx

    But ad idea can be to hide the original window and open another one

    But how is possible leave the grid in edit mode ?

    And after that continue with edit the cell ?

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5528 posts

    Posted 28 Apr Link to this post

    Hello Giampaolo,

    If you hide the first dialog with the Visible parameter, it will remove its child components from the render tree and Blazor will dispose them, so you couldn't keep the grid in it "alive". Perhaps you can try to add a Class to it that is conditional, and raise a flag when the grid goes into edit/insert mode (that is, when the second modal is to show up) and try to set its display CSS rule to none.

    I posted a sample workaround like this in the feedback portal, so you can check if it will work out for you. Perhaps using a custom popup form for the grid can get things done (link). Or, maybe you could avoid a second modal by using a custom inline form (link) or the inline editing (link).

    Regards,
    Marin Bratanov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top