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

e is undefine

1 Answer 23 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.
Jerry
Top achievements
Rank 1
Jerry asked on 22 Feb 2011, 11:01 PM
Hi Telerik team,


I encountered a really strange problem while using DropDownList. For the same datasource, it gives me an error as show below for DropDownList and ComboBox but it works fine for AutoComplete. sorry, I'm not sure whether does it make any sense. I have also attached a screenshot of the error by using firebug.

e is undefined
http://localhost:3084/asset.axd?id=LwIAAB-LCAAAAAAABADsvQdgHEmWJSYvbcp7f0r1StfgdKEIgGATJNiQQBDswYjN5pLsHWlHIymrKoHKZVZlXWYWQMztnbz33nvvvffee--997o7nU4n99__P1xmZAFs9s5K2smeIYCqyB8_fnwfPyJ-8Uezjx597xd_tPro0Uevp3WxapuPRh-d82dL-uynf9E6r6-3d8f79N9P47vqo0c7v2Qk37Z5mdfF2_G0Wiyqpf1-t_v9Il-u7bd7vbezMl_Ostq2uNdt0ebv2kn1zjbY7zaYZW2-KqZvcwfkfrfNRV3M7Lef9rrIJk1L47ctHpgWQoLxZVYW6MY2OIh2kM-Ktlhe2FYPe6jW2UW2nM3qyvW126PoVbGcVVeuQY-kZdG07useTbN1W9GsrMrcw3j33i_5_i_5_uijacst37V3fzq7zBqedmpxSZ_u7ezujO-Nd-_tHtAnU2KOe5_ep18-etTW6_yX_D8BAAD__3JxkXsvAgAA
Line 169


on the controller side.
[HttpPost]
public ActionResult _selectSrc()
 {
     var srcs = _dbTimesheet.Timecodes.AsQueryable().Select((p) => p.Source).Distinct().ToList();
     return new JsonResult { Data = srcs };
}



in the view:DropDownList, this gives me an error
<%
     Html.Telerik().DropDownList()
          .Name("srcDropdownLst")
          .DataBinding(binding => binding.Ajax().Select("_selectSrc", "Home"))
          .SelectedIndex(0)
          .Render();
%>


in the view, AutoComplete, this works fine.
<%
    Html.Telerik().AutoComplete()
        .Name("srcDropdddownLst")
        .DataBinding(binding => binding.Ajax().Select("_selectSrc", "Home"))
        .Render();
     %>



Help, please...


regards
Jerry

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Feb 2011, 08:01 AM
Hi Jerry,

 Unfortunately we are not sure why this error occurs and the provided source code does not indicate any problems. Could you please attach a sample project which demonstrates the JavaScript error? Then we will be able to investigate it further.

Regards,
Atanas Korchev
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!
Tags
ComboBox
Asked by
Jerry
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or