Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
192 views

Hi There,

It looks like the DocumentManager and ImageManager (part of the RadEditor) are not working at all when using Internet Explorer.

The page says "This content cannot be displayed in a frame" and in the IE Developer Console I see the error "SCRIPT5: Access is denied.  Telerik.Web.UI.WebResource.axd (16532,28)"

I have attached an image showing what I see.

I have done some looking around and it seems like this issue was supposed to have been fixed since ASP.NET 3.5 was released.  We are targeting .NET 4.6.1

Our Telerik DLL version are a bit out of date but we are no longer paying for the product so cannot get the latest versions.  We are currently on version 2014.2.618.45.  

Below is the the simple code I have on a ASP.Net WebForm that we have the editor on.  When I view this editor in IE I get the error described above and shown in the attached screenshot.

Test.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="Test_test" %>
<!DOCTYPE html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>
        <div>
            <telerik:RadEditor runat="server" ID="RadEditor1" >
            </telerik:RadEditor>
        </div>
    </form>
</body>
</html>

 

Test.aspx.cs

using System;
public partial class Test_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
}

Thanks in advance.

 

Rumen
Telerik team
 answered on 11 Oct 2019
3 answers
476 views

I have a timer on my parent master page that checks for certain events and updates controls that I want through an updatePanel.

I have numerous child pages that inherit from the master page.

I get the desired effect of the timer checking for some event and updating the controls I specified.

 

The undesired effect is the timer will go through the selected(In View) child page --- page life cycle.

 So if I have a code in  my

 

Page_Init or

 

Page_Load event handlers whatever is in them gets executed.

Doesn't render the html because it is a call back and only updates the control I specified like I wanted but, It seems unnessary that It goes through the page lifecycle of the child page.

I do logging in the methods I have in some of these page life cycle stages and If I happen to leave my user agent with a view of one of this pages, it will be logging every interval that the timer is set to. That is not desired.

Here is a pseudo example 

Master Page aspx  = Timer set to interval 30 sec , And Update panel with updatemode set to conditional

Master code behind = Page_load checkforEvent and if true update the panel.

 

 

******************************************************************************************************

Child page 1 inherits from Master page

Page load = Do something specific to the page and nothing to do with timer , by the way log what you do

 **************************************************

Child Page 2 inherits from Master page

 Page load = Do something specific to the page and nothing to do with timer,by the way log what you do

********************************

 

My expected result is ,

Go through page load and other page life cycles of the of the master page but not the children.

Apparently that is not the case.

Question is, How Can I stop the timer from firing my child page event handlers??

The sender in the page load of the child says it is the child page not the timer, so I cant say if timer skip what it usually does.

I also can't set a flag in the master page , like a session var to flag the timer because in ASP.net the child fires before the Master.

What to do,what to do?

Thanx!

Shivek
Top achievements
Rank 1
 answered on 11 Oct 2019
1 answer
97 views

See the code below, the RadMenu1 ALT-M works but the RadMenu2 ALT-N does not? So I'm guessing we need to set the RadMenu2 RadMenu2.KeyboardNavigationSettings.FocusKey in the code behind but RadMenu2.KeyboardNavigationSettings.FocusKey="N" is an error, how do we set this property?

  <telerik:RadMenu ID="RadMenu1" runat="server" BorderWidth="1px"
                Style="z-index: 10; width: 100%; white-space: normal;" Skin="Silk"
                Font-Names="Verdana" Font-Size="X-Small" EnableRoundedCorners="True"
                EnableAriaSupport="True">
                <Items>
                    <telerik:RadMenuItem runat="server" AccessKey="1" Text="Unit 1">
                        <Items>
                            <telerik:RadMenuItem runat="server" AccessKey="O" Text="open">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" AccessKey="C" Text="Close">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" AccessKey="2" Text="Unit 2">
                        <Items>
                            <telerik:RadMenuItem runat="server" AccessKey="A" Text="Lec A">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" AccessKey="B" Text="Lec B">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

                <KeyboardNavigationSettings CommandKey="Alt" FocusKey="M"></KeyboardNavigationSettings>
            </telerik:RadMenu>

            <telerik:RadMenu ID="RadMenu2" runat="server" Flow="Horizontal" BorderWidth="1px"
                Style="z-index: 10; width: 100%; white-space: normal;" Skin="Silk"
                Font-Names="Verdana" Font-Size="X-Small" EnableRoundedCorners="true" RenderMode="Lightweight"
                EnableAriaSupport="true">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                <KeyboardNavigationSettings CommandKey="Alt" FocusKey="N"></KeyboardNavigationSettings>
            </telerik:RadMenu>

 

 protected void Page_Load(object sender, EventArgs e)
    {
        RadMenuItem m = new RadMenuItem();
        m.Text = "Menu 1";
        RadMenu2.Items.Add(m);
        m.Text = "Menu 2";
        RadMenu2.Items.Add(m);
        //RadMenu2.KeyboardNavigationSettings.FocusKey = "";
        //RadMenu2.KeyboardNavigationSettings.CommandKey = "Alt";
    }

david
Top achievements
Rank 1
 answered on 10 Oct 2019
7 answers
388 views

Hi 

Is there a way of putting grouping together on one page instead spreading over multiple pages in a rad grid ? 

Regards

Alex

Attila Antal
Telerik team
 answered on 10 Oct 2019
3 answers
219 views

I have a radmenu and one of the radmenuitems needs to be set to differernt pages depending on session variable.  The other menuitems are static. 

I have tried navigateurl='<%# session("pageid")%>

The first menuitem is the one I want to be dynamic

 

here is my radmenu code

 <telerik:RadMenu runat="server" ID="radMenu2" Style="vertical-align:middle; width: 74%; margin: 0 auto;padding-right:5px; padding-bottom: 15px; padding-top: 10px;"  RenderMode="Lightweight"  >
                  <Items>
                      <telerik:RadMenuItem runat="server" Text="Letter of Intent/Proposal" Font-Names="Trebuchet MS" Font-Size="12pt" navigateurl='<%#Session("pageName") %>'></telerik:RadMenuItem>
                      <telerik:Radmenuitem text ="Letter of Intent/Proposal"  font-size="12pt" Font-Names="Trebuchet MS" runat="server"
           enabled="true" >
                </telerik:Radmenuitem>
          <telerik:Radmenuitem text ="Third Party Information" font-size="12pt" Font-Names="Trebuchet MS" runat="server"
           >
                </telerik:Radmenuitem>
                   <telerik:radmenuitem text="Essentials" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/essentialinfo.aspx"></telerik:radmenuitem>
                 
                <telerik:radmenuitem text="Focus" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/focus.aspx"></telerik:radmenuitem>
              
                <telerik:radmenuitem text="Award Design" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/awardDesign.aspx"></telerik:radmenuitem>
               <telerik:radmenuitem text="Student Support" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/studentsupport.aspx"></telerik:radmenuitem>

                <telerik:radmenuitem text="Narrative" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/Narrative.aspx"></telerik:radmenuitem>
                
                <telerik:radmenuitem text="Invoice Schedule" runat="server" font-size="12pt" Font-Names="Trebuchet MS"  navigateurl="/mssApplications/invoiceSchedule.aspx"></telerik:radmenuitem>
                
                <telerik:radmenuitem text="Grant Documents" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/grantdocuments.aspx"></telerik:radmenuitem>
                </items>
                </telerik:radmenu>

 

Thank you

Eyup
Telerik team
 answered on 10 Oct 2019
4 answers
160 views

     I have put a RadAsynchUpload control in a table <TR><td> ... 

 

When I scroll the web page with the table, the table and it's contents scroll, but the RadAsynchUpload does not.  It's like it has an Absolute Position.

 

I have not set any  CSS or other styling on that control.  It is set up with it's default.

 

Any assistance would be appreciated.

 

Thanks,

 

Roger

Vessy
Telerik team
 answered on 09 Oct 2019
3 answers
231 views

Hi all,

I'm updating EndDate value when StartDate value changes. This seems to work fine, but when I try to save the appointment the old date value appears in the EndDatePicker and I cannot save the appointment.

 

Here is mycode

 

JavaScript

function changeEndDate(sender, e) {
 var endDatePickerID = sender.get_id().replace("StartDate", "EndDate");
 var endDatePicker = $find(endDatePickerID);
 endDatePicker.set_selectedDate(sender.get_selectedDate());
}

 

c#

RadDatePicker startDate = (RadDatePicker)e.Container.FindControl("StartDate");
if (startDate != null){
startDate.ClientEvents.OnDateSelected = "changeEndDate"
}

 

Can 

 

The code is copied from this link https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/change-the-end-date-when-the-start-date-changes

 

Any help on this?
Thanks a lot

Simon
Top achievements
Rank 1
 answered on 09 Oct 2019
5 answers
631 views
Hi,

I need to set DateTimePicker.DateInput.Text in codebehind, but the following error occurs when I set as dateTimeBirthDate.DateInput.Text = "2007/11/12"; for example.

Text property cannot be set. String was not recognized as a valid DateTime.

How could I set this property appropriately?

Thanks,
Ricky.
okouin
Top achievements
Rank 1
 answered on 09 Oct 2019
5 answers
192 views
Just discovered the solution to this, and since I'd not managed to find it online when I was struggling with it, wanted to share for the benefit of others: I experienced a number of issues trying to get RadAsyncUpload to work, and just when I thought I'd got everything sorted, I ran into a new issue on the live server (but not local dev): for files over 2MB, the upload would start, but then fail at exactly 2048Kb; Firebug helped me to discover that it was the second POST to Telerik.Web.UI.WebResource.axd?type=rau that was returning a 500 error; after having gone through all the suggested troubleshooting etc. during earlier phases, I was left to my own devices to figure this one out - thankfully it came to me pretty quickly: the file could be written (initial chunk), but not modified (for the addition of subsequent chunks)!  Adding Modify permissions for NETWORK SERVICE to RadUploadTemp cleared it up right away, as well as solving the file moving to TargetFolder on PostBack failure which I was experiencing on the live server.  Hopefully this helps someone else! :)
DJG
Top achievements
Rank 1
 answered on 08 Oct 2019
0 answers
128 views

     Hello Folks,

I would like to get a css class for HeaderStyle-Width="200" and then call using mediaquery for mobile.

Unable to assign a css for this property unlike asp grid.Please help me

PuriTelerik
Top achievements
Rank 1
 asked on 08 Oct 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?