Last Updated: 10 Nov 2020 15:25 by ADMIN
Created on: 05 Sep 2019 17:58
Category: Dialog
Type: Bug Report
HtmlAttributes method is not assigning the class

I have a dialog defined but the "mydialog-control" CSS class never gets added to the dialog when it's rendered.  Why is that happening?

    .HtmlAttributes(new { @class = "mydialog-control"})
    .Actions(act =>
      act.Add().Text("Cancel Change").Action("cancelClicked");
1 comment
Posted on: 09 Sep 2019 15:14

Hi Jon,

Thank you for reporting this behavior. I have investigated further and it appears that this is a bug. Thus, I have converted this item to a bug in the Public Feedback Portal and also logged it on GitHub:

As a temporary workaround you can use the Window widget where this functionality is supported. The below example would initialize a window widget with the myTestClass attribute added t the widget's instance:


    .Title("My Dialog")
            <div>Window content here</div>
            <hr />
.HtmlAttributes(new { @class = "myTestClass" })

Also, as a small token of gratitude for helping us discover this issue, I have updated your Telerik Points accordingly.

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.