This is a migrated thread and some comments may be shown as answers.
Runtime Error selecting 1900-1909
3 Answers 57 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Riaan Engelbrecht
Top achievements
Rank 1
Riaan Engelbrecht asked on 20 Feb 2010, 10:09 AM
Hello,

I found a Runtime Error when selecting 1900-1909 on the DatePicker control.

The testing was done using the following:
Operating System:
Microsoft Windows Server 2003 RC2 Standard Edition, Service Pack 2

Browser:
Internet Explorer 7.0.5730.13

The steps I took to reproduce the error was:

 

  1. Move focus on calendar control.
  2. Click on DatePicker header i.e. February 2010. It changes 2010 and shows all the months.
  3. Click again, it changes to 2010-2019 and shows 12 individual years to pick from.
  4. Click again, it changes to 2000-2099 and shows 12 options of 10 year periods to choose from.
  5. Click the back arrow '<', it changes to 1900-1999 and shows 12 options of 10 year periods to choose from.
  6. Select '1900-1909', it will display an error dialog with the following:

A Runtime Error has occurred.
Do you wish to Debug?

Line: 142
Error: Invalid argument.


Best,
Riaan Engelbrecht

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 22 Feb 2010, 12:34 PM
Hi Riaan,

I tried to reproduce the depicted issue using the steps, which you post, but to no avail. Please review this screen cast and let me know if I am missing something.

Greetings,
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
Enrico Mazzullo
Top achievements
Rank 1
answered on 15 Apr 2010, 10:37 PM
I get the same problem.  Did you manage to fix it?  I find it very strange because when I run the examples from Telerik then the DatePicker works.  I even created a blank project with only the DatePicker on a page and it is also still seems to fail. 

Herewith is the code:-

Controller

-------------
public class HomeController : Controller
{

//
// GET: /Home/
public ActionResult Index()
    {
        return View();
    }
}

View
-------
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Index</h2>
    <%=Html.Telerik().DatePicker().Name("datePicker") %>
</asp:Content>

Site,Master
--------------
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
        <%= Html.Telerik().StyleSheetRegistrar()
                .DefaultGroup(group => group
  .Add("telerik.common.css")
                .Add("telerik.vista.css"))
        %>
    </head>
    <body>
        <div>
            <asp:ContentPlaceHolder ID="MainContent" runat="server">
            </asp:ContentPlaceHolder>
        </div>
        <!-- other content -->
        <%= Html.Telerik().ScriptRegistrar() %>
    </body>
</html>

0
Georgi Krustev
Telerik team
answered on 16 Apr 2010, 08:04 AM
Hello Enrico,

The problem was caused by missing line-height CSS style. Nevertheless the issue is fixed and it will be available in the next release of Telerik Components for ASP.NET MVC.

Here you can find another thread devoted on the same matter.

Regards,
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.
Tags
Date/Time Pickers
Asked by
Riaan Engelbrecht
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Enrico Mazzullo
Top achievements
Rank 1
Share this question
or