Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
232 views
Hello,

I am using RadEditor and arrange it to save automatically. I just copied Auto save demo example to my project. Actually, it works correctly. But Rad editor lost focus after autosave which is really annoying. Do you have any idea about  why I am experiencing such a scenario. I would appreciate it a lot, if you could help me to overcome it.

Thanks in Advance
Kind Regards
Aytaç Utku TOPAL



Additional Informations:
  • I am using RadEditor 2009 Q1 version 2009.1.402.20

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> 

Here are OnclientLoad function and timer related stuffs (It is almost identical with example given. It just doesn't update UI

   <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> 

Chris Griffin
Top achievements
Rank 1
 answered on 20 Dec 2010
3 answers
105 views
The rad calendar seems to localize everything but the date itself. For French locale, the date should be DD/MM/YYYY.

This is the code that localizes everything but the date on the RadCalendar:

rcCurrent.CultureInfo =

 

new System.Globalization.CultureInfo(UserContext.Locale);

What am I missing to get the date to localize?

 

Greg
Top achievements
Rank 1
 answered on 20 Dec 2010
3 answers
113 views
Hi -

We are experiencing an issue, which I am able to reproduce in your demo, where creating a recurring event that has a duration greater than its frequency causes rendering issues.  For example, an event that is a week long and happens every hour.  More extremely, try this scenario:

1. Create a new event with a start of 9/14/2005 11:00 AM and a finish of 9/14/2012 1:00 PM.
2. Add hourly recurrence (recurring once every hour).
3. Navigate to some date in the scheduler that comes before 9/14/2012.

The above scenario, while I realize it is unrealistic in a practical sense (but of course, everyone has users who will try it), causes the recurring events to overlap and ultimately "stack up" to epic proportions.  It crashed my browser when I tried it in your demo.  The same thing happens in our application, and we are getting this error as well (which I imagine you may have seen in your own error logs when I tried it in your demo):

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)

Looking at the exception, it looks like what might be happening is that your code is trying to determine how tall the control needs to be based on how many events need to be rendered, and the .NET Unit structure itself is saying "that's too big."

Microsoft Outlook enforces a rule with recurrence where duration must be less than or equal to frequency.  That solves this issue.  Is there any reason the RadScheduler doesn't do the same?

Is there any known workaround here or are we expected to code our own validation for this on top of the RadScheduler?

Thanks,
John


Nikolay Tsenkov
Telerik team
 answered on 20 Dec 2010
1 answer
113 views
Hi,
I'm using RadControls for ASP.NET Q2 2007. I have a treeview control with checkboxes. It's working fine in IE7 and Firefox. But in IE8, the checkbox and icon for the treenode are not aligned to the treenode text. That makes the vertical lines between nodes not continuous. It doesn't look right.
Please give some help on this issue.
Thanks,
Nikolay Tsenkov
Telerik team
 answered on 20 Dec 2010
2 answers
49 views

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

 

 

Nikolay Tsenkov
Telerik team
 answered on 20 Dec 2010
1 answer
81 views
We are using Telerik Radgrid in our application. We identified that there are many js files which are getting loaded on the page when use the Telerik.Web.UI dll.  These js files are loaded as ScriptResource.axd reference files dynamically.

Since we are only using telerik Radgrid we decided to set the EnableEmbeddedScripts property to false. Hence we set the property in web.config as below:
             <appSettings>
                     <add key="Telerik.EnableEmbeddedScripts" value="false"/>
             </appSettings>

We also gave the script reference as below: Note that we are also using AJAXToolkit script manager, and it is not possible to remove that.

             <ajaxToolkit:ToolkitScriptManager ID="masterPageScriptManager" runat="server" AsyncPostBackTimeout="1200"
            EnableScriptGlobalization="true" ScriptMode="Release">
            <CompositeScript ScriptMode="Release">
                <Scripts>                   
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />                 
                </Scripts>
            </CompositeScript>
        </ajaxToolkit:ToolkitScriptManager>

After this settings we identified that all the functionality of Radgrid is working fine, except filter functionality.

Is there any other js file which we need to add in above Script tag ? Or is there any other specific configuration we need to do for fitler functionality ?
Simon
Telerik team
 answered on 20 Dec 2010
1 answer
149 views
As disabling the embedded scripts, application would require references to many javascripts.
Is it possible to refer files responsible for RadGrid through AjaxScriptManager.

Please let me know which JS files are needed and where to find them to make all the functionality of a Rad Grid working. Also if [jQueryPlugins.js] is required, please let me know where can I find it as well.
Simon
Telerik team
 answered on 20 Dec 2010
1 answer
116 views


Hi 
In our application whenever the user clicks on submit button we display  till the result set in rad grid .
We are using rad ajax panel in the application on most of the pages.
We have been facing issues intermittantly that  ajax loading panel keeps on moving  on click of submit button .
The only solution to this is that the users have to close the browser and relogin.

I came across the following on teleric forums.
http://www.telerik.com/community/forums/aspnet/ajax/loading-image-gets-stuck.aspx

Following are the versions of the controls which we are using,
RadAjax.Net2.dll      1.7.2.0 
RadCalendar.Net2.dll  2.1.2.0 
RadComboBox.Net2.dll  2.7.2.0 
RadGrid.Net2.dll     4.6.2.0 
RadWindow.Net2.dll   1.8.2.0 
RadTabStrip.Net2.dll 3.5.2.0 
RadSplitter.Net2.dll 1.2.2.1 
RadMenu.Net2.dll     4.3.2.0 
RadInput.Net2.dll    2.0.2.0 
RadWindow.Net2.dll  1.8.2.0

Please provide your suggestion how this issue can be resolved,

regards,
Sandeep
Sebastian
Telerik team
 answered on 20 Dec 2010
4 answers
137 views
I have multiple panels on a page.  Normally I only need to refresh one panel at a time from editing customer info.  However, in the instance when I want to make a payment, I need to update several panels.

When a popup window closes I've tried the following to refresh my panels, but only the first panel gets refreshed.  Anyone have any idea how to refresh multiple panels in this instance? 

                    ajaxManager = $find("<%=MakePaymentButtonPanel.ClientID %>");
                    ajaxManager.ajaxRequest("MakePayment");
                    ajaxManager = $find("<%=MakePaymentPanel.ClientID %>");
                    ajaxManager.ajaxRequest("MakePayment");
                    ajaxManager = $find("<%=PaymentsMadePanel.ClientID %>");
                    ajaxManager.ajaxRequest("MakePayment");                   
Travis
Top achievements
Rank 1
 answered on 20 Dec 2010
1 answer
82 views
Hi,

I have a RadMenu on a master page and I want to show a Rad loading panel when RadMenu is clicked. I am using RadAjaxManager and am successful with main RadMenu. However I cannot get the loading panel to fire when RadMenuItems are clicked.

Can somebody guide me in the right direction?

Andrew
Pavlina
Telerik team
 answered on 20 Dec 2010
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?