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

Validation box for DropdownList is not positioned correctly

1 Answer 50 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Cynthia
Top achievements
Rank 1
Cynthia asked on 18 Jun 2013, 07:34 PM
This screen shot says it all:
https://dl.dropboxusercontent.com/u/17474320/Validator-Miss-positioned.png

The code has:

            @(Html.Kendo().DropDownList()
                  .Name("OwnerUserId")
                  .HtmlAttributes(new { style = "width:200px", @required = true })
                  .OptionLabel("(Select User)")
                  .DataTextField("Name")
                  .DataValueField("Id")
                  .DataSource(source => {
                       source.Read(read => {
                           read.Action("GetCascadeUser", "ComboBox")
                              .Data("filterUsers");
                       }).ServerFiltering(true);
                  })
                  .Enable(true)
                  .AutoBind(true)
            )

How do I fix that, so the validation is positioned correctly?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 20 Jun 2013, 04:26 PM
Hello Cynthia,

Basically the kendo validator message is added next to the input element that is validated which in the DropDownList is a hidden element.

I assume that if you specify the validation message position like shown here you should avoid the issue.

Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Cynthia
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or