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

[Solved] trying to run sample

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
tom
Top achievements
Rank 1
tom asked on 18 Aug 2009, 01:47 AM
I'm trying to run the accordion sample and have setup my pages as the example but for some reason the jscript is not being attached.  Is there something i'm missing?  Following is my master page.
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <asp:ContentPlaceHolder ID="TitleContent" runat="server" />
    </title>
    <link href="~/Content/styles.css" rel="stylesheet" type="text/css" />
    <link id="Link1" rel="stylesheet" type="text/css" runat="server" href="~/Content/jquery-ui-1.7.2.custom.css" />
   
    <% Html.Telerik().StyleSheetRegistrar()
                      .DefaultGroup(group => group.Add("styles.css")
                                                  .Add("SyntaxHighlighter.css")
                                                  .Combined(true)
                                   )
                      .Render(); %>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <img src="../../Images/suite_sales_board.gif" alt="Suites Sales Board" />
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>
                        <%= Html.ActionLink("Suite Board", "List", "SuitesBoard")%></li>
                </ul>
            </div>
        </div>
        <div id="main">
            <asp:ContentPlaceHolder ID="MainContent" runat="server" />
            <div id="footer">
            </div>
        </div>
    </div>
   
    <% Html.Telerik().ScriptRegistrar()
                      .Scripts(script => script.Add("jquery.easing.1.3.js")); %>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Kazi Manzur Rashid
Telerik team
answered on 18 Aug 2009, 10:18 AM
Hi tom,

You have to explicitly call the Render() of the ScriptRegistrar. I think the following should solve the issue:

<% Html.Telerik().ScriptRegistrar()
                      .Scripts(script => script.Add("jquery.easing.1.3.js"))
.Render();%>
Thanks,
Kazi Manzur Rashid
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
tom
Top achievements
Rank 1
Answers by
Kazi Manzur Rashid
Telerik team
Share this question
or