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

Can't select from drop-down in Autocomplete

7 Answers 116 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sydney
Top achievements
Rank 1
Sydney asked on 23 Feb 2011, 02:05 AM
In trying to figure this out, I pasted your example into my page and just replaced the Model driven stuff with hard coded values like so:

                          @{
                            Html.Telerik().AutoComplete()
                            .Name("AutoComplete")
                            .Encode(false)
                            .BindTo(Model.Teacher.Tags)
                            .AutoFill(true)
                            .HtmlAttributes(new { style = "width: 200px" })
                            .HighlightFirstMatch(true)
                            .Filterable(filtering =>
                            {
                                filtering.FilterMode(AutoCompleteFilterMode.StartsWith);
                            })
                            .Multiple(multi =>
                            {
                                multi.Separator(",")
                                    .Enabled(true);


                            }).Render();
                        }


Model.Teacher.Tags is an IList<string>.  I can't imagine what's going on here - any help greatly appreciated.  The correct values are populated in the list, and they drop-down correctly, but they can't be selected with the mouse.

Note:  I have a ComboBox on the same page and have the same problem.  Happens whether I have only one or both controls on the page.

7 Answers, 1 is accepted

Sort by
0
Sydney
Top achievements
Rank 1
answered on 24 Feb 2011, 03:23 AM
Helllloooooooooooooo?
0
Laurent Fabre
Top achievements
Rank 2
answered on 24 Feb 2011, 07:40 AM
Hi Sydney,

I have the very same problem with release 2010.3.1318, I'm not sure when this happened since I don't use them a lot.

Laurent
0
Georgi Krustev
Telerik team
answered on 24 Feb 2011, 03:36 PM
Hello,

It is hard to determine where could be the problem depending on the given information. Could you try to reproduce this issue on this online demo?

If the problem still persists I will suggest you send us a simple test project which replicates the reported problem. 

Regards,
Georgi Krustev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Sydney
Top achievements
Rank 1
answered on 25 Feb 2011, 12:16 AM
No - I grabbed the code from there - wouldn't have done so if it didn't work there. Is there an option to have the Telerik Script manager output the non-minimized form of jquery to facilitate debugging?
0
Laurent Fabre
Top achievements
Rank 2
answered on 25 Feb 2011, 12:52 AM
Sydney, you can simply add .jQuery(false) to the ScriptRegistrar and include your non-minimized version manually.

I don't have time to replicate the issue right now sorry but to me this looks like a weird z-index problem. I use jQuery 1.4.4 and jQuery UI 1.8.9 and that's about it. No javascript errors so I'm pretty sure it's a CSS problem, I tried on several browsers and with the same result.

Obviously this was working nicely before so I probably changed something with I thought was unrelated.

LF
0
Sydney
Top achievements
Rank 1
answered on 03 Mar 2011, 01:51 AM
I have narrowed this down to an incompatibility of Telerik and jquery.validate.js.    I also have the following:

<script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.js"></script>
<script type="text/javascript" src="/Scripts/jquery.validate.unobtrusive.js"></script>

However, it's only when I include the jquery.validate.js file that the Telerik controls stop working - this is true even if I remove all validation requirements for the field in question (i.e., it has no unobtrusive attributes added so, one presumes, it is not being validated).

Any chance of a patch for this?

Note that this also impacts the Telerik window control - can't be dragged/dropped or closed with the X when the jquery.validate.js is present.

Late Update:  I see that this is a known issue as described here (http://www.telerik.com/community/forums/aspnet-mvc/general/q2-2010-mvc-components-and-jquery-validation.aspx).  An updated version of jquery.validate.js is provided in this thread:  http://www.telerik.com/community/forums/aspnet-mvc/treeview/tree-with-ajax-binding-not-operational.aspx
0
Laurent Fabre
Top achievements
Rank 2
answered on 03 Mar 2011, 08:43 AM
Tags
ComboBox
Asked by
Sydney
Top achievements
Rank 1
Answers by
Sydney
Top achievements
Rank 1
Laurent Fabre
Top achievements
Rank 2
Georgi Krustev
Telerik team
Share this question
or