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

[Solved] DatePicker Icon not showing

4 Answers 149 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Wells
Top achievements
Rank 1
Mark Wells asked on 22 Jul 2010, 08:23 PM
I can't get the date picker icon to show beside the text box. I have added all css and images but it still doesn't show.

What am I missing?

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Jul 2010, 06:59 AM
Hi Mark Wells,

Unfortunately we are not sure what has gone wrong. Providing more details would be of great help! You can paste the relevant code (view, master page etc).

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark Wells
Top achievements
Rank 1
answered on 23 Jul 2010, 06:00 PM
I'm not doing anything special but here is what I have:

In View

<% Html.Telerik().DatePicker() 
            .Name("datePicker")
            .InputHtmlAttributes(new { style = "width: 90%;" })
            .Render(); %>

In master page

<head runat="server">
  
    <meta http-equiv="expires" content="-1"/>
    <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
      
     <%=Html.CSS("site") %>
     <%=Html.Script("jquery-1.3.2.min.js")%> 
     <%= Html.Telerik().StyleSheetRegistrar()
        .DefaultGroup(group => group.Add("telerik.common.css")
                                    .Add("telerik.vista.css"))
     %>
         
</head>
<body>
<div id="page">
    <div id="header">
            <h1><% Html.RenderPartial("AgencyName"); %></h1>
            <div class="description">Follow Up Interview</div>
    </div>
          
    <div id="contentarea">
        <asp:ContentPlaceHolder ID="MainContent" runat="server" />      
    </div>      
          
    <div id="footer">       
    </div>
</div>
<%  Html.Telerik().ScriptRegistrar().Render(); %> 
</body>

In Global.asax (because we changed the folders for css and javascript

protected override void OnApplicationStarted()
       {
           Logger.Info("App is starting");
           RegisterRoutes(RouteTable.Routes);
           RegisterAllControllersIn(Assembly.GetExecutingAssembly());
           WebAssetDefaultSettings.ScriptFilesPath = "~/Public/Javascript";
           WebAssetDefaultSettings.StyleSheetFilesPath = "~/Public/css";
       }

In our Css folder we have:
  • telerik.common.css
  • telerik.default.css
  • telerik.vista.css

In our javascript folder we have (there are a bunch of other js files but not necessarily related):

  • jquery-1.4.2.min.js
  • jquery-1.3.2.min.js
  • telerik.calendar.js
  • telerik.common.js
  • telerik.datepicker.js
0
Accepted
Georgi Krustev
Telerik team
answered on 26 Jul 2010, 09:00 AM
Hello Mark,

One possible cause of this problem is not registered CSS files of the components. Could you please verify that the "telerik.common.css" and "telerik.vista.css" is rendered on the page ( to investigate review the HTML of the page).

I also noticed that you are loading two version of the jQuery, which will cause problems. I will suggest you load jQuery 1.4.2 version.

If the problem still exists I will suggest you open support ticket on the same matter and send us a simple test project which we can investigate locally.


Sincerely yours,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark Wells
Top achievements
Rank 1
answered on 26 Jul 2010, 06:24 PM
Hi Georgi,

Thanks for your response. I figured out what the problem was. I needed to add the sprite.png to my project and change the url in the telerik.vista.css to where we store our images.

Thanks,

Mark
Tags
Date/Time Pickers
Asked by
Mark Wells
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mark Wells
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or