protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) { if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert)) { CustomValidator validatorForFilm1 = new CustomValidator(); RadScheduler scheduler = (RadScheduler)sender; validatorForFilm1.ValidationGroup = scheduler.ValidationGroup; validatorForFilm1.ControlToValidate = "Subject"; validatorForFilm1.ErrorMessage = "Error"; validatorForFilm1.ClientValidationFunction = "validationFunctionSubject"; (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForFilm1); //e.Container.Controls.Add(validatorForFilm1); }}function validationFunctionSubject(source, arguments) { if (arguments.Value.length > 0) { arguments.IsValid = true; } else { arguments.IsValid = false; } }function OnClientFormCreated(sender, eventArgs) { $telerik.$(".rsRecurrenceOptionList").children().each(function (i) { if (i < 1 || i >= 2) $(this).hide(); }); $telerik.$(".rsRecurrenceOptionList li:eq(1) input").attr("checked", "checked"); $telerik.$(".rsRecurrenceOptionList li:eq(1) input").click(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(0)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1) span input").attr("checked", "checked"); $telerik.$(".rsAdvDaily li:eq(1)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").attr("checked", "checked"); //$telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").click(); $telerik.$(".rsAdvOptionsPanel li:eq(1)").hide(); $telerik.$(".rsAdvOptionsPanel li:eq(2)").hide(); }.rsAdvRecurrencePatterns{ visibility : hidden !important; height: 0px;}
RadNumericTextBox
is not working properly when culture changed to French - It increases extra zeros.
<EditItemTemplate>
<telerik:RadNumericTextBox ID="SearchAreaTopLeftXRadNumericTextBox" Runat="server"
Text='<%# Bind("SearchAreaTopLeftY") %>'
Skin="Office2007" MaxLength="6" MaxValue="999.99" MinValue="0" Width="80px" LabelCssClass=""
meta:resourcekey="SearchAreaTopLeftXRadNumericTextBoxResource1">
<NumberFormat DecimalDigits="2" GroupSeparator="" />
</telerik:RadNumericTextBox>
</EditItemTemplate>
For e.g. Lets say there is a decimal column "SearchAreaTopLeftY" and it has a value 1.00 (in en-US culture)
when we switch to French culture (fr-FR) its value becomes 1,00 and that is valid as in french culture period is represented by comma.
The problems comes when we edit the column we find a value 100,00 instead of 1,00 in RADNumericTextBox. I don't know from where it is added extra zeros.
Also while updating it gives an error:
=========================================================================================================
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; InfoPath.2)
Timestamp: Fri, 28 Aug 2009 06:25:56 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Line: 15
Char: 9278
Code: 0
URI: http://localhost/PIPWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a94b8a2b4-5efc-4f4c-9641-d912b698978d%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1125.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3afr-FR%3afd794f69-50b6-4e80-a52c-60fb1a05429c%3aa9723048%3a393f5085%3a9703c1f0%3aa3f85c94%3a819163f9%3a39249aa4%3a577694e5%3a34f9d57d%3a4b6f7e66%3a6dd34527%3a665c7bcf%3ac6335cbd
========================================================================================================
I am using AJAX RadGrid and Telerik.Web.UI version is 2008.3.1125.35.
Please help me out :)
Thanks - Hemant




