where I should place Modal Window component?

1 Answer 388 Views
Grid Window
Alexandre
Top achievements
Rank 1
Iron
Iron
Alexandre asked on 07 Nov 2022, 05:09 PM | edited on 07 Nov 2022, 06:58 PM

I have TelerikGrid and when I click on the item of this grid, I should open Telerik Window Modal component.

<StatusUpdateModalComponent WindowVisible="@ModalVisible"></StatusUpdateModalComponent>

In grid:

  <GridCommandButton OnClick="ShowUpdateWindow">Update</GridCommandButton>

In event handler:

protected void ShowUpdateWindow(GridCommandEventArgs args)
        {          
            ModalVisible = true;
        }

When it's inside grid it opens many modal windows (for each row).

But if outside it shows only one time and doesn't show again if I click again.

Should I put it inside grid or outside?

 

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 10 Nov 2022, 12:48 PM

Hello Alexandre, 

We have a sample application that showcases how to create a custom popup form for the Grid. Can you check the approach from there and get back to me if it helped you move forward with your application? 

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid Window
Asked by
Alexandre
Top achievements
Rank 1
Iron
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or