I found a problem with the date components for some reason the system will never accept that I enter a date of any first Sunday after the 15th of the month of October every year.
When I enter one of these dates and move the focus out of the component, the system automatically switches to the previous day.
You can notice the issue even in the pages of the demonstration site:
RadDatePicker
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx
RadDateInput
http://demos.telerik.com/aspnet-ajax/input/examples/raddateinput/firstlook/defaultcs.aspx
Calendar / Range Selection
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/rangeselection/defaultcs.aspx
Dates:
10/19/2014
10/20/2013
10/21/2012
10/16/2011
10/17/2010
10/18/2009
10/19/2008
10/21/2007
10/22/2006
10/16/2005
10/17/2004
10/19/2003
10/20/2002
10/21/2001
10/22/2000
10/17/1999
10/18/1998
10/19/1997
10/20/1996
10/22/1995
10/16/1994
10/17/1993
10/18/1992
10/20/1991
10/21/1990
10/22/1989
10/16/1988
10/18/1987
10/19/1986
10/20/1985
10/21/1984
10/16/1983
10/17/1982
10/18/1981
10/19/1980
<telerik:GridTemplateColumn HeaderText="City"> <ItemTemplate> <asp:Label ID="lblcity" runat="server" Text='<%# Bind("CityID") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlCity" runat="server"> </asp:DropDownList> </EditItemTemplate> </telerik:GridTemplateColumn> protected void gdv_Drivers_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if ((e.Item is GridEditableItem && ((GridEditableItem)e.Item).IsInEditMode)) { string where = null; // string cityid = ((DropDownList)e.Item.FindControl("ddlcity")).SelectedValue; // string stateid = ((DropDownList)e.Item.FindControl("ddlstate")).SelectedValue; // string zipid = ((DropDownList)e.Item.FindControl("ddlzip")).SelectedValue; DropDownList ddlcity, ddlstate, ddlzip; ddlcity = ((DropDownList)e.Item.FindControl("ddlCity")); ddlstate = ((DropDownList)e.Item.FindControl("ddlState")); ddlzip = ((DropDownList)e.Item.FindControl("ddlZip")); myGlobal.LoadDropDown(ddlcity, "tbl_CityLkup", "CityID", "CityNm", "GCRPC", "CityID", "CityNm", where); myGlobal.LoadDropDown(ddlstate, "tbl_StateLkup", "StateID", "StateNm", "GCRPC", "StateID", "StateNm", where); myGlobal.LoadDropDown(ddlzip, "tbl_ZipLkup", "ZipID", "ZipCd", "GCRPC", "ZipID", "ZipCd", where); } }If you define a custom palette in RadChart and use the LoadFromXml() method, the control will throw an error in FillStyle.GetHashCode(). Basically, what I think is going on there is that the PalettesCollection.GetPalette() method is throwing an error because the "CustomPalettes" property has not yet loaded the custom palette that is defined declaratively in the control’s XML markup on the aspx page.
Relevant code in Telerik.Charting.PalettesCollection.PalettesCollection.cs:
public static Palette GetPalette(string name, Chart chart)
{
if (!chart.CustomPalettes.Contains(name))
{
throw new ChartException(string.Format("There is no Palette with name: {0}", name));
}
return chart.CustomPalettes.GetPalette(name);
}
Declarative definition sample in the aspx page:
<CustomPalettes>
<telerik:Palette Name="CustomPaletteColorful">
<Items>
<telerik:PaletteItem MainColor="0xff, 0xba, 0x4a" SecondColor="0xff, 0xf4, 0xe3">
</telerik:PaletteItem>
<telerik:PaletteItem MainColor="0x15, 0xc5, 0x16" SecondColor="0xda, 0xf6, 0xda">
</telerik:PaletteItem>
<telerik:PaletteItem MainColor="0xff, 0x5b, 0" SecondColor="0xff, 0xe5, 0xd7">
</telerik:PaletteItem>
</Items>
</telerik:Palette>
</CustomPalettes><table width="100%"> <tr> <td> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" RegisterWithScriptManager="false"> </telerik:RadAjaxLoadingPanel> <asp:UpdatePanel ID="DispalyGrid" runat="server" UpdateMode="Always"> <ContentTemplate> <telerik:RadGrid ID="wRGViewCustomer" runat="server" Width="100%" PageSize="15" OnNeedDataSource="wRGViewCustomer_NeedDataSource" OnItemCommand="wRGViewCustomer_RowCommand" AllowPaging="True" Skin="WebBlue" ShowGroupPanel="true" AllowSorting="true" GridLines="None" AutoGenerateColumns="False" AllowFilteringByColumn="true"> <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> <MasterTableView DataKeyNames="COProductId" AllowMultiColumnSorting="false" GroupLoadMode="Server" TableLayout="Fixed" EnableHeaderContextMenu="true" > <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> <NestedViewTemplate> <asp:Panel runat="server" ID="InnerContainer" Visible="false" BackColor="#BDD097"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <telerik:RadTabStrip runat="server" ID="TabStip1" Skin="Forest" MultiPageID="Multipage1" SelectedIndex="0" EnableViewState="true"> <Tabs> <telerik:RadTab runat="server" Text="Fitter Order" PageViewID="PageView1"> </telerik:RadTab> <telerik:RadTab runat="server" Text="PO" PageViewID="PageView2"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Bill" PageViewID="PageView3"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" EnableViewState="true"> <telerik:RadPageView runat="server" ID="PageView1" BorderStyle="Solid" BorderWidth="3" BorderColor="#BDD097" Skin="Forest" Width="99.5%"> <div> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> </tr> <tr> <td> <telerik:RadGrid ID="wRGFO" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false" GridLines="Both"> <PagerStyle Mode="NumericPages"></PagerStyle> <MasterTableView DataKeyNames="FOId"> <Columns> <telerik:GridBoundColumn UniqueName="DocNo" HeaderText="DocNo" DataField="DocNo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="DocDate" HeaderText="Date" DataField="DocDate"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="FitterName" HeaderText="Fitter Name" DataField="FitterName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="TotalFee" HeaderText="TotalFee" DataField="TotalFee"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Instruction" HeaderText="Instruction" DataField="Instruction"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Remark" HeaderText="Remark" DataField="Remark"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </div> </telerik:RadPageView> <telerik:RadPageView runat="server" BorderStyle="Solid" BorderWidth="3" BorderColor="#BDD097" Skin="Forest" ID="PageView2" Width="99.5%"> <div> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <telerik:RadGrid ID="wRGPO" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false" GridLines="Both"> <MasterTableView DataKeyNames="POId"> <Columns> <telerik:GridBoundColumn UniqueName="docno" HeaderText="Doc No" DataField="docno"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="docdate" HeaderText="Date" DataField="docdate" DataFormatString="{0:d}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="supplierName" HeaderText="Supplier Name" DataField="supplierName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="status" HeaderText="status" DataField="status" DataFormatString="{0:d}"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </div> </telerik:RadPageView> <telerik:RadPageView runat="server" BorderStyle="Solid" BorderWidth="3" BorderColor="#BDD097" Skin="Forest" ID="PageView3" Width="99.5%"> <div> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <telerik:RadGrid ID="wRGBill" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false" GridLines="Both"> <MasterTableView DataKeyNames="POId"> <Columns> <telerik:GridBoundColumn UniqueName="docno" HeaderText="Doc No" DataField="docno"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="docdate" HeaderText="Date" DataField="docdate" DataFormatString="{0:d}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="supplierName" HeaderText="Supplier Name" DataField="supplierName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="status" HeaderText="status" DataField="status" DataFormatString="{0:d}"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </div> </telerik:RadPageView> </telerik:RadMultiPage> </td> </tr> </table> </asp:Panel> </NestedViewTemplate> <Columns> <telerik:GridBoundColumn UniqueName="AccountName" HeaderText="DocNo" DataField="docno" FilterControlWidth="20px" HeaderStyle-Width="5%"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="docdate" HeaderText="DocDate" HeaderStyle-Width="11%" DataField="docdate"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="DueDate" HeaderText="DueDate" HeaderStyle-Width="11%" DataField="DueDate"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="PartyName" HeaderText="Name" HeaderStyle-Width="11%" FilterControlWidth="40px" DataField="PartyName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="PartyAddress" HeaderText="Address" HeaderStyle-Width="12%" DataField="PartyAddress"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MobileNo" HeaderText="MobileNo" HeaderStyle-Width="7%" FilterControlWidth="40px" DataField="MobileNo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="PhoneNo" HeaderText="PhoneNo" HeaderStyle-Width="7%" FilterControlWidth="40px" DataField="PhoneNo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="frameno" HeaderText="FNo" DataField="frameno" FilterControlWidth="20px" HeaderStyle-Width="4%"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="productdescription" HeaderText="ProductDescription" FilterControlWidth="170px" DataField="productdescription" HeaderStyle-Width="22%"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="status" HeaderText="Status" DataField="status" FilterControlWidth="30px" HeaderStyle-Width="8%"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="IsNew" HeaderStyle-Width="6%" ReadOnly="true" FilterControlWidth="25px"> <ItemTemplate> <asp:CheckBox ID="chknew" Checked='<%#Bind("NewProduct") %>' runat="server" ShowFilterIcon="false" Enabled="false" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <HeaderStyle HorizontalAlign="Left" /> </MasterTableView> </telerik:RadGrid> </ContentTemplate> </asp:UpdatePanel> </td> </tr> </table>