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

[Solved] Kendo DropDownList disappears with jQuery validate

2 Answers 395 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 16 Oct 2014, 07:47 PM
Hi, I'm using the Kendo DropDownList with server side validation.  When submitting my form the first time, the server validation fires and the expected error message appears by the dropdown control.  However, if I submit form again, the DropDownList actually disappears during postback, doesn't bind to model, and is not in Request.Form collection.

Any ideas?  I've seen posts elsewhere but no replies (see below).

http://stackoverflow.com/questions/16633498/jquery-validate-hides-kendo-ui-controls
http://www.codeproject.com/Questions/753507/Kendo-combobox-control-disappears-while-clicking-o

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 17 Oct 2014, 11:24 AM
Hello Bob,

I believe that the problem and its solution is described here. Let me know if I am missing something.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bob
Top achievements
Rank 1
answered on 17 Oct 2014, 01:24 PM
I ended up putting this in master layout cshtml file and it seems to be working just fine:

$(function () {
    $("button[type='submit'], input[type='submit']").click(function () { $(".k-widget").removeClass("input-validation-error"); });
});
Tags
DropDownList
Asked by
Bob
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Bob
Top achievements
Rank 1
Share this question
or