ClientScript.RegisterStartupScript(Page.GetType(),
"mykey", "CloseAndReload();", True)
ClientScript.RegisterStartupScript(Page.GetType(),
"mykey", "CloseAndReload();", True) that does not.
here are my timer and editor
| <asp:UpdatePanel ID="Deneme" runat="server" UpdateMode="Conditional"> | |
| <Triggers> | |
| <asp:AsyncPostBackTrigger ControlID="TimerAutoSave" EventName="Tick" /> | |
| </Triggers> | |
| <ContentTemplate> | |
| <telerik:RadEditor runat="server" ID="DocEditor" Height="550" Width="100%" OnClientLoad="OnClientLoad"> | |
| </telerik:RadEditor> | |
| <asp:RequiredFieldValidator ID="EditorValidator" runat="server" ControlToValidate="DocEditor" | |
| SetFocusOnError="true" Display="Static"> | |
| </asp:RequiredFieldValidator> | |
| <asp:HiddenField ID="hdnUserID" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnLanguageCode" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnTempDocID" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnServerName" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnServerPort" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnVirtualDirectoryName" runat="server" Value="" /> | |
| <asp:HiddenField ID="hdnPostASPX" runat="server" Value="" /> | |
| </ContentTemplate> | |
| </asp:UpdatePanel> | |
| <asp:Timer ID="TimerAutoSave" runat="server" Interval="120000"> | |
| </asp:Timer> |
| <script type="text/javascript"> | |
| function OnClientLoad(sender, args) | |
| { | |
| var timer = $find("<%=TimerAutoSave.ClientID %>"); | |
| startCounter(); | |
| sender.add_spellCheckLoaded(function() | |
| { | |
| var spell = sender.get_ajaxSpellCheck(); | |
| spell.add_spellCheckStart(function(sender, args) | |
| { | |
| timer._stopTimer(); | |
| //Stop counter | |
| stopCounter(); | |
| }); | |
| spell.add_spellCheckEnd(function(sender, args) | |
| { | |
| //Restart the timer; | |
| timer._startTimer(); | |
| //Restart counter | |
| startCounter(); | |
| }); | |
| } | |
| ); | |
| } | |
| var initialSeconds = 120; | |
| var currentSeconds = initialSeconds; | |
| var interval = null; | |
| function startCounter() | |
| { | |
| if (!interval) | |
| { | |
| currentSeconds = initialSeconds; | |
| interval = window.setInterval(function() | |
| { | |
| if (currentSeconds > 0) | |
| { | |
| currentSeconds--; | |
| } | |
| else | |
| { | |
| currentSeconds = initialSeconds; | |
| } | |
| }, 1000); | |
| } | |
| } | |
| function stopCounter() | |
| { | |
| if (interval) window.clearInterval(interval); | |
| interval = null; | |
| } | |
| </script> |
rcCurrent.CultureInfo =
new System.Globalization.CultureInfo(UserContext.Locale);
What am I missing to get the date to localize?
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value at System.Web.UI.WebControls.Unit..ctor(Double value, UnitType type) at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.CreateAllDayCells(WebControl row, Dictionary`2 appointmentControls) at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.AddRow(IList`1 allDaySlots, Dictionary`2 appointmentControls) at Telerik.Web.UI.Scheduler.Views.Week.Renderer.CreateAllDayContent(WebControl allDayContentWrapper) at Telerik.Web.UI.Scheduler.Views.Week.RendererBase.AddAllDayRowContent(SchedulerTopTable topTable) at Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() at Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() at Telerik.Web.UI.RadScheduler.CreateContent() at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) at Telerik.Web.UI.RadScheduler.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)The following error occurs and I have made some initial research;
Line: 1707 Error: 'get_element()' is null or not an object
This occurs only when tree is not loaded and user clicks to go on other screen. I have made some analysis on this function and this is due to missing parameter attributes.
When the error occurs the second parameter in this f-tion o in the in the _contex attribute in most of the values has nulls.
In line 1670 all this values are transferred to variable e;
var e=o.get_context();
And finally in line 1707 when e.get_element() is called, function fails.
I have noted that this event (onNodeLoadingSuccess) happens after TreeViewNodePopulating and before TreeNodePopulated and a possible solution is if I could check the context and cancel tree loading.
I have tried it this way but seems like context element is locked because it only has value {..} but nothing else can be seen.
function TreeViewNodePopulating(sender, eventArgs) {
var _contextElement = eventArgs.get_context();
}
Could you tell me how to access this context element and check it value and if itās null I could cancel the whole tree loading process.
Btw the tree loading is successful but after user press ok on this error and the tree reloads itself.
Additional information:
Tree view is client loaded trough web service
Telerik version 2010.2.826.35
Best Regards
Deni Spasovski