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

jQuery.telerik.load is not a function

0 Answers 124 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.
bata
Top achievements
Rank 1
bata asked on 12 Aug 2011, 01:23 AM
When I try to LoadFromContent  DropDownList I am getting 'jQuery.telerik.load is not a function' javascript error. 
Content is being loaded inside the Tab in Hierarchy Grid (server binding)
I tried jQuery versions from 1.5.1 to 1.6.2 with the same result.
I am using the latest Q2 2011 version 2011.2.712.0
<%=Html.Telerik().DropDownList()
            .Name("ReturnReasonIdentities")
            .HtmlAttributes(new {style = "width: 450px;"})
                    .BindTo(new SelectList(Model.ReturnReasonIdentities, "RetReasonIdentityId", "RetReasonIdentityText"))
            %>

UPDATE: I just discovered that issue is not directly related to DropDown, already whatever Telerik control I am trying to use here, the same error is occurring. This fact leads me back to LoadFromContent inside the Hierarchy Grid Tab control.
If I try to LoadFromContent some static content (pure HTML) everything works fine, however any load of Telerik controls ends with the javascript error.
Grid-> DetailView -> Tab -> Control LoadFromContent

Also, there is an additional issue within.
When I try to add TabStrip Content between TabStrip LoadFromContent controls ( Tab Strip -> items.Add()), everything after Tab Strip Content control will not trigger loading. When I move Tab Strip Content at the end, everything is being loaded correctly.

Example:

items.Add()
         .Text(
"1")
.LoadContentFrom("ReturnManagerReturnOrderEdit", "ReturnManager", new RouteValueDictionary { { "id", e.RetOrderId } });

items.Add()
.Text("2")
.Content(ReturnWeb.StatusRender.Render("RM", (int)e.RetOrderId, "ALL", true));
  items.Add()
.Text("3")
.LoadContentFrom("ReturnManagerReturnOrderEdit", "ReturnManager", new RouteValueDictionary { { "id", e.RetOrderId } });
--------------------------------
Text("3") - Couldn't be loaded

However, if I change the order to:
items.Add()
.Text("1")
.LoadContentFrom("ReturnManagerReturnOrderEdit", "ReturnManager", new RouteValueDictionary { { "id", e.RetOrderId } });
 
items.Add()
.Text("3")
.LoadContentFrom("ReturnManagerReturnOrderEdit", "ReturnManager", new RouteValueDictionary { { "id", e.RetOrderId } });
 
items.Add()
.Text("2")
.Content(ReturnWeb.StatusRender.Render("RM", (int)e.RetOrderId, "ALL", true));
Everything works fine.
Tags
ComboBox
Asked by
bata
Top achievements
Rank 1
Share this question
or