0

这不是特定于浏览器的 - 该行为存在于 Firefox 和 IE 中。RadControl 正在 SiteFinity 站点的用户控件中使用。

对控件进行了很少的定制。

<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server"
     MinDate="2010/1/1" Width="250px">
      <ClientEvents></ClientEvents>
      <TimeView starttime="08:00:00" endtime="20:00:00"
           interval="02:00:00"></TimeView>
      <DateInput runat="server" ID="DateInput"></DateInput>
</telerik:RadDateTimePicker>

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadDateTimePicker1.MinDate = DateTime.Now;
    }
}
4

2 回答 2

1

[Disclaimer, I work for Telerik]

I don't specifically know what the issue is, however here are some general troubleshooting steps that might help unearth the issue:

  1. Check for Javacript errors - (Firefox's Error Console would do it)
  2. Isolate the RadDateTimePicker control from Sitefinity - (Create a normal ASPX page and place the RadDateTimePicker control on this page. Does it work in this environment?)
  3. Check for stylesheet issues using Firebug and/or remove stylesheets (backup first).

In general, keep simplifying until it starts working then re-add complexity until it breaks again. This normally tells me where the problem is.

Alternately, you could send your project/code to Telerik support. Best of luck.

于 2010-06-29T14:09:31.350 回答
0

您可以尝试更改 MinDate 以使用:

RadDateTimePicker1.MinDate = System.DateTime.Parse(String.Format("{0}/{1}/{2}", System.DateTime.Now.Month, System.DateTime.Now.Day, System.DateTime.Now.Year - 1))

并告诉我行为是否改变。

另外,新的亮点是否也被显示,还是完全停留在旧的亮点上?

于 2010-06-11T20:58:18.410 回答