This is a migrated thread and some comments may be shown as answers.

Dialogs always visible

1 Answer 202 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
malcolm
Top achievements
Rank 1
malcolm asked on 08 Feb 2019, 10:27 AM

I have a page with a pair of dialog controls on it.  They "pop-up" into the center of the screen and work as they should, aside from the fact they are also constantly visible at the bottom of the page, overlapping each other.

Here's the definitions:

@(Html.Kendo().Dialog()
          .Name("confirmVoid")
          .Title("Void Ticket")
          .Content("Are you sure you want to void this ticket?")
          .Width(300)
          .Modal(true)
          .Visible(false)
          .Actions(action =>
          {
              action.Add().Text("Yes").Action("onYesVoid");
              action.Add().Text("No");
          })
)
 
@(Html.Kendo().Dialog()
          .Name("voidSuccess")
          .Title("Void Ticket")
          .Content("The ticket was voided successfully")
          .Width(300)
          .Modal(true)
          .Visible(false)
          .Actions(action =>
          {
              action.Add().Text("OK");
          })
)

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Feb 2019, 03:10 PM
Hi Malcolm,

There is nothing obviously wrong in those dialog definitions and my best guess is that there is either invalid HTML on the page, or some CSS that causes their elements to always be visible.

I'm attaching here a simple view + layout that I used for testing and that seem to work fine for me, so you can compare against them and find the difference causing the problem. If this doesn't help, please modify my sample to showcase the issue so I can investigate.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Dialog
Asked by
malcolm
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or