﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Date</title><link>http://www.intersoftsolutions.com/Community/Tags/Date/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Unable to Integrating WebInput in Webgrid for date time input is not working</title><link>http://www.intersoftsolutions.com/Community/Tags/Date/</link><pubDate>Mon, 19 Sep 2011 07:08:00 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>WebInput</category><category>Date</category><category>DateTimePicker</category><category>DatePicker</category><category>Picker</category><category>Unable</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am trying to input date time in a WebGrid with a Masked WebInput as DateTime picker. But after I changed the date value, the cell become &lt;b&gt;empty.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I don't know if had made wrong settings for the WebGrid/ WebInput, I have attached Code below and the way to reproduce the issue (png file) for your reference. Please kindly assist. Thanks&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;ASPX Code:
&amp;lt;%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DateInGrid.aspx.vb" Inherits="IntersoftTeseting.DateInGrid" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls"
    TagPrefix="ISWebInput" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="250px" UseDefaultStyle="true"
            Width="500px"&amp;gt;
            &amp;lt;LayoutSettings AllowEdit="Yes"&amp;gt;
            &amp;lt;/LayoutSettings&amp;gt;
        &amp;lt;/ISWebGrid:WebGrid&amp;gt;
        &amp;lt;ISWebInput:WebInput ID="WebInput1" runat="server"&amp;gt;
            &amp;lt;HighLight IsEnabled="True" Type="Phrase" /&amp;gt;
            &amp;lt;EditFormat Format="dd MMM yyyy" IsEnabled="true" Type="DateTime"&amp;gt;
                &amp;lt;MaskInfo MaskExpression="00 LLL 0000"&amp;gt;
                &amp;lt;/MaskInfo&amp;gt;
            &amp;lt;/EditFormat&amp;gt;
            &amp;lt;DisplayFormat&amp;gt;
                &amp;lt;ErrorWindowInfo IsEnabled="False"&amp;gt;
                &amp;lt;/ErrorWindowInfo&amp;gt;
            &amp;lt;/DisplayFormat&amp;gt;
            &amp;lt;DateTimeEditor DateInputLink="" IsEnabled="True"&amp;gt;
                &amp;lt;DropDownYearFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid"
                    BorderWidth="1px"&amp;gt;
                &amp;lt;/DropDownYearFrameStyle&amp;gt;
                &amp;lt;DropDownMonthFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid"
                    BorderWidth="1px"&amp;gt;
                &amp;lt;/DropDownMonthFrameStyle&amp;gt;
            &amp;lt;/DateTimeEditor&amp;gt;
            &amp;lt;CultureInfo CultureName="en-US"&amp;gt;
            &amp;lt;/CultureInfo&amp;gt;
        &amp;lt;/ISWebInput:WebInput&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;VB Code:
Imports ISNet.WebUI.WebGrid
Public Class DateInGrid
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    End Sub
    Public Function GetDiffData() As DataTable
        Dim dt As New DataTable
        dt.Columns.Add("Str", GetType(String))
        dt.Columns.Add("Int", GetType(Integer))
        dt.Columns.Add("DateTime", GetType(Date))
        For i As Integer = 1 To 100
            dt.Rows.Add(i &amp;amp; "_" &amp;amp; i, i, Now.AddDays(i).Date)
        Next
        Return dt
    End Function
    Private Sub WebGrid1_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.InitializeDataSource
        e.DataSource = GetDiffData()
    End Sub
    Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding
        Dim wg As WebGrid = sender
        If Not IsPostBack Then
            wg.RetrieveStructure()
        End If
        For Each wgcol As WebGridColumn In wg.RootTable.Columns
            Select Case wgcol.Name.ToLower
                Case "datetime"
                    wgcol.EditType = EditType.Custom
                    'wgcol.DataFormatString = "dd MMM yyyy"
                    wgcol.CustomEditorName = "WebInputNET"
                    wgcol.CustomEditorServerId = "WebInput1"
            End Select
        Next
    End Sub
End Class&lt;/pre&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item><item><title>Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/Tags/Date/</link><pubDate>Wed, 11 May 2011 00:13:10 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>WebInput</category><category>Javascript Error</category><category>Date</category><category>Integrate</category><category>WebInput.Net</category><category>DateTime</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;When I move the &lt;b&gt;highlight&lt;/b&gt; (&lt;b&gt;not in EditMode&lt;/b&gt;) to the cell (integrated with WebInput) and start typing "0" (e.g. "01"), the page produce a javascript error, and unable to finish the input. If the input starts with a non-zero character(e.g."11") the input is able to be finished, but the cell will show nothing after finish input.&lt;/p&gt;
&lt;p&gt;Is there any way to work around for this issue?&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item><item><title>Unable to reselect date (drop down) for linked input</title><link>http://www.intersoftsolutions.com/Community/Tags/Date/</link><pubDate>Fri, 28 Jan 2011 03:31:56 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebInput</category><category>Date</category><category>DateInputLink</category><category>Linked</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to make a linked date input for my project, and so I find the sample below:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://live.intersoftpt.com/Default.aspx?path=/WebInput/DateTime%20Input&amp;amp;url=cs/WebInput/QuickSelectDateInput.aspx"&gt;http://live.intersoftpt.com/Default.aspx?path=/WebInput/DateTime%20Input&amp;amp;url=cs/WebInput/QuickSelectDateInput.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(for the Linked Input) The date drop down will not response after I selecting both date, until I clicked the quick select date. Is this a design of linked input?&lt;/p&gt;
&lt;p&gt;Would there be any way to let the user to use the date drop down after the above senario (drop down is always show after user click the drop down button) ?&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;Extra Information:
Steps to reproduce (Linked Input):
1. use drop down to select the first WebInput's Date.
2. use drop down to select the second WebInput's Date.
3. click on the drop down button, there should be no response.
4. drop down will be re-activate after on of the below method.
    - clicking the quick select date
    - manually input date into one of the WebInput&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>WebInput 3 Cannot Set Width Using CssClass Style</title><link>http://www.intersoftsolutions.com/Community/Tags/Date/</link><pubDate>Thu, 07 Jan 2010 10:40:07 GMT</pubDate><dc:creator>PRISMAY</dc:creator><category>Calendar</category><category>Date</category><category>Time</category><category>CssClass</category><category>Styles</category><category>Width</category><description>&lt;p&gt;Seems that I can't set the width unless I use the WebInput Width property.  I've tried everything I can think of via CssClass and the width will not use my class setting.&lt;/p&gt;
&lt;p&gt;The styles used on the test page:&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 9px"&gt;&lt;pre&gt;&amp;lt;style type="text/css"&amp;gt;
.Ctl_Calendar
{
	background-color: #ffffff;
	border: solid 0px #DDCCCC;
	font-family: Calibri;
	font-size: 10pt;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	width: 100%;
	height: 22px;
}

.Ctl_Calendar_Frame
{
	border: solid 1px #DDCCCC;
	width: 100%;
	height: 22px;
}

.Ctl_Calendar_DropDown
{
	font-family: Webdings;
	border: none;
	background-color: white;
	color: #DDCCCC;
	cursor: pointer;
}

.Ctl_Calendar_TextBox
{
	background-color: White;
	border-style: none;
	font-family: Calibri;
	font-size: 9pt;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	border-collapse: collapse;
	width: 100%;
	height: 22px;
}
&amp;lt;/style&amp;gt;
&lt;/pre&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size: 10pt"&gt;Seems that I can't set the width unless I use the WebInput Width property.&amp;nbsp; I've tried everything I can think of via CssClass and the width will not use my class setting.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebInput:WebInput ID="dt1" runat="server" IsDesignInitialize="False"
    CssClass="Ctl_Calendar" CausesValidation="False" 
    MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" UseDefaultStyle="true"&amp;gt;

&amp;lt;CultureInfo CultureName="en-US"&amp;gt;&amp;lt;/CultureInfo&amp;gt;

&amp;lt;DisplayFormat IsEnabled="true" IsValidateOnChange="true" Type="DateTime"
    Format="dd-MMM-yy"&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/DisplayFormat&amp;gt;
&amp;lt;DateTimeEditor IsEnabled="true"&amp;gt;&amp;lt;/DateTimeEditor&amp;gt;
&amp;lt;EditFormat IsEnabled="true" IsValidateOnChange="true" IsValueSpinnable="true"
    ErrorText="Invalid date selected" Type="DateTime" Format="MM/dd/yyyy"&amp;gt;
    &amp;lt;MaskInfo EmptyAsNull="true" MaskExpression="00/00/0000"&amp;gt;&amp;lt;/MaskInfo&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/EditFormat&amp;gt;
&amp;lt;DropDownStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/DropDownStyle&amp;gt;
&amp;lt;FrameStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/FrameStyle&amp;gt;
&amp;lt;TextBoxStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/TextBoxStyle&amp;gt;
    &amp;lt;HighLight IsEnabled="True" /&amp;gt;
&amp;lt;/ISWebInput:WebInput&amp;gt;

&amp;lt;br /&amp;gt;

&amp;lt;ISWebInput:WebInput ID="dt2" runat="server" IsDesignInitialize="False"
    CssClass="Ctl_Calendar" CausesValidation="False" 
    MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" UseDefaultStyle="false"&amp;gt;

&amp;lt;CultureInfo CultureName="en-US"&amp;gt;&amp;lt;/CultureInfo&amp;gt;

&amp;lt;DisplayFormat IsEnabled="true" IsValidateOnChange="true" Type="DateTime"
    Format="dd-MMM-yy"&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/DisplayFormat&amp;gt;
&amp;lt;DateTimeEditor IsEnabled="true"&amp;gt;&amp;lt;/DateTimeEditor&amp;gt;
&amp;lt;EditFormat IsEnabled="true" IsValidateOnChange="true" IsValueSpinnable="true"
    ErrorText="Invalid date selected" Type="DateTime" Format="MM/dd/yyyy"&amp;gt;
    &amp;lt;MaskInfo EmptyAsNull="true" MaskExpression="00/00/0000"&amp;gt;&amp;lt;/MaskInfo&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/EditFormat&amp;gt;
&amp;lt;DropDownStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/DropDownStyle&amp;gt;
&amp;lt;FrameStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/FrameStyle&amp;gt;
&amp;lt;TextBoxStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/TextBoxStyle&amp;gt;
    &amp;lt;HighLight IsEnabled="True" /&amp;gt;
&amp;lt;/ISWebInput:WebInput&amp;gt;

&amp;lt;br /&amp;gt;

&amp;lt;ISWebInput:WebInput ID="WebInput1" runat="server" IsDesignInitialize="False"
    CssClass="Ctl_Calendar" CausesValidation="False" Width="100%"
    MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" UseDefaultStyle="true"&amp;gt;

&amp;lt;CultureInfo CultureName="en-US"&amp;gt;&amp;lt;/CultureInfo&amp;gt;

&amp;lt;DisplayFormat IsEnabled="true" IsValidateOnChange="true" Type="DateTime"
    Format="dd-MMM-yy"&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/DisplayFormat&amp;gt;
&amp;lt;DateTimeEditor IsEnabled="true"&amp;gt;&amp;lt;/DateTimeEditor&amp;gt;
&amp;lt;EditFormat IsEnabled="true" IsValidateOnChange="true" IsValueSpinnable="true"
    ErrorText="Invalid date selected" Type="DateTime" Format="MM/dd/yyyy"&amp;gt;
    &amp;lt;MaskInfo EmptyAsNull="true" MaskExpression="00/00/0000"&amp;gt;&amp;lt;/MaskInfo&amp;gt;
    &amp;lt;ErrorWindowInfo IsEnabled="true"&amp;gt;
    &amp;lt;/ErrorWindowInfo&amp;gt;
&amp;lt;/EditFormat&amp;gt;
&amp;lt;DropDownStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_DropDown"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/DropDownStyle&amp;gt;
&amp;lt;FrameStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_Frame"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/FrameStyle&amp;gt;
&amp;lt;TextBoxStyle&amp;gt;
    &amp;lt;Active CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Active&amp;gt;
    &amp;lt;Normal CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Normal&amp;gt;
    &amp;lt;Over CssClass="Ctl_Calendar_TextBox"&amp;gt;&amp;lt;/Over&amp;gt;
&amp;lt;/TextBoxStyle&amp;gt;
    &amp;lt;HighLight IsEnabled="True" /&amp;gt;
&amp;lt;/ISWebInput:WebInput&amp;gt;
&lt;/pre&gt;
&lt;p&gt;The first calendar uses the default style, the second does not and the third uses the Width property.  Note that only the third one works because it explicitly uses the Width property.  The first and second do not adhere to the CssClass which has the width set to 100%.&lt;/p&gt;
&lt;p&gt;You can put the code above in a table and set the cell width to, say, 400px and you'll see that only the third object sizes to fit the cell, the other two do not.&lt;/p&gt;
&lt;p&gt;Also, the calendar that does not use the default style, i.e., UseDefaultStyle="false" crashes when I try to pull it down with the error "Microsoft Javascript runtime error: 'd' is null or not an object."  The javascript code snippet it breaks at is the dotfuscated v4e272.d.innertHTML=vde196; where v4e272 is valid but d is indeed null.&lt;/p&gt;</description></item></channel></rss>