Hello,
after updating the ASP.Net controls from Q3 2011 to Q1 2012 the following problem occured;
When disabling the RadDatePicker and hide the DatePopupButton the display of the date is a litlle bit unexpected :-). If the DatePopupButton stays vsible everything works fine but when visible is false than there's my problem.
.aspx:
aspx.cs:
Anyone?
Regards,
Jos Meerkerk
after updating the ASP.Net controls from Q3 2011 to Q1 2012 the following problem occured;
When disabling the RadDatePicker and hide the DatePopupButton the display of the date is a litlle bit unexpected :-). If the DatePopupButton stays vsible everything works fine but when visible is false than there's my problem.
.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.PanelBar_Default" %><%@ Register Src="~/PanelBar/WebUserControl.ascx" TagName="ucpb" TagPrefix="usercpb" %><!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 id="Head1" runat="server"> <title></title> <style type="text/css"> </style> <script type="text/javascript"> </script></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="ScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook"> </telerik:RadAjaxLoadingPanel> <telerik:RadScriptBlock ID="ScriptBlock1" runat="server"> <script type="text/javascript"> </script> </telerik:RadScriptBlock> <telerik:RadAjaxPanel runat="server" ID="rapHourControl" LoadingPanelID="RadAjaxLoadingPanel1"> <div style="width: 100px;"> <telerik:RadDatePicker runat="server" ID="rdpDate" Skin="Windows7" Width="100px" TabIndex="2" DatePopupButton-TabIndex="-1"> <DateInput ID="rdpDateInput" runat="server" EmptyMessage="Required"> <EmptyMessageStyle BackColor="#FFF1F1" Font-Italic="True" ForeColor="Red" /> <FocusedStyle BackColor="#CCFFCC" /> </DateInput> </telerik:RadDatePicker> </div> </telerik:RadAjaxPanel> </form></body></html>aspx.cs:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;using System.Data;namespace WebApplication1{ public partial class PanelBar_Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { rdpDate.Enabled = false; rdpDate.DatePopupButton.Visible = false; } protected override void OnInit(EventArgs e) { base.OnInit(e); rdpDate.SelectedDate = DateTime.Now; } }}Anyone?
Regards,
Jos Meerkerk