Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
214 views
When using RadSplitter, if I call RadPane.set_contentUrl and pass the URL of a PDF document, it will sucessfully navigate the pane and show the PDF, but then it shows a Javascript error after it displays the PDF. I believe this is because in IE, when displaying a PDF there may not be a window object. The stack trace for the JS error shows it in the Sys$_Application$dispose routine in the AJAX class where it accesses the window object. The problem is the window object throws "Invalid calling object" when accessed.This only occurs when navigating to a PDF, and from a page that uses RadAjaxPanel.

Any ideas?
Thanks
Dobromir
Telerik team
 answered on 27 Apr 2012
1 answer
195 views
hi;
I've use ajax radcontrols, when i run the application in vs everything is OK;  but when i deploy the application and use iis , i see some exception in ajax request,

  1. Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


all requests break on iis;

and that is my response preview :
----------------------------------------------------------------------------

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadCompression.Compress(HttpApplication application) +568
   Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e) +43
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

---------------------------------------------------------------------

i have never seem any exception in my code when i debug; i thing that is really silly issue ; but i cant resolve that
Pavlina
Telerik team
 answered on 27 Apr 2012
1 answer
194 views

I've tried several posts with no success.  I am running this on IIS 7 on a windows 2008 web server edition.  I have three versions of the Telerik control in my GAC and I have the correct version in the bin directory. 

 

Server Error in '/BPT' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The specified module could not be found. (Exception from HRESULT: 0x8007007E) (C:\inetpub\wwwroot\fl-pembrokepark.inkforce.net\BPT\web.config line 196)

Source Error:

Line 194: --> Line 195: <httpModules> Line 196: <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> Line 197: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> Line 198: </httpModules>

Source File: C:\inetpub\wwwroot\fl-pembrokepark.inkforce.net\BPT\web.config Line: 196


Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456           
Genady Sergeev
Telerik team
 answered on 27 Apr 2012
4 answers
186 views
Hi,

We are using RadScheduler to display a rota. The data per eah date is very minimal. However the page which containc RadScheduler control takes about 12-15 seconds to load completely before on can start working on it. The query which fetches the date is fairly basic and highly optimised. So we don't see any problem there.

Earlier on load, the control was defaulted to to display data for a month. Then it used to take around 20-25 seconds before a page loaded. But ever since we configured it to display data for 7-days, the time has come down to around 12 seconds.

What we conclude is that the javascript or html that the control brings alongwith it takes fairly long time to load.

Is there a way we can reduce the amount of javascript of html that is loaded. Or elase if you think there are other problems, can you just the solution?

Thanks
Peter
Telerik team
 answered on 27 Apr 2012
2 answers
126 views
We have an MVC 3 application where we needed to use the Rad Scheduler. We basically render out the control and stick it into a view. This is working fine. 

However now we have a situation where we need to render the scheduler to a modal popup. Basically in the modal we do an ajax GET request which grabs the rendered control and sets the innerHTML of the modal to the ajax response. 

After setting the innerHTML all of the scheduler markup seems to be there including script tags and viewstate. The calendar is rendered in the modal, looks great. However it doesn't do anything. Click events aren't working, cant change months, etc.

My guess is that there are some DOM events or something that allow the calendar to work from the full page load but not from the ajax call. I haven't figured it out exactly. But my question is, is there some way to ajax load the control and then from the clients side trigger some code that causes the scheduler to run all of its javascript (or do whatever it needs to do) and start working?

I realize this was not the intended use of the control but any suggestions would be greatly appreciated!

Peter
Telerik team
 answered on 27 Apr 2012
1 answer
107 views
We are currently using the RadStyleSheetManager in our application and have moved all of our styles into one style sheet. The only stylesheet not included in our main stylesheet is the jQuery Redmond.css stylesheet.  We currently have EnableScriptCombine = True and OutputCompression = "True". This is all setup on the master page in our application. Our users are reporting that they are receiving the Max stylesheet message in IE when they are on certain pages.

One of the screens where this issue appears to be occurring frequently we have a RadTabStrip and a RadGrid. When the user clicks the tabstrip we are just re-binding the grid with a different datasource. There was no need to actually have seperate grids since it is the exact same on each tab the only exception is the filter being used on the datasource.

Users are reporting that if they switch the tabs or paging through the grids; if seems that the everytime the page is posting it appears that the same requests are repeatedly being made and this is causing the Max stylesheet error to appear ( not 100% sure that's what is happening but at least thats what I see when i open up the Developer Tool in IE and click the CSS tab I'm seeing a lot of request in the drop down for this particular page.)

Any guidance or help would be greatly appreciated in helping us resolve this issue.

If you need more information please let me know and I will be glad to supply you with anything you may need.
Peter
Telerik team
 answered on 27 Apr 2012
1 answer
111 views
Probably something very simple, but I can't seem to find it.

I have a DragDropColumn and when the row is in edit mode the image is still visible.  Any way to make the column "ReadOnly"?

Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Apr 2012
4 answers
182 views
As we know. when we click "add new record" on Grid

Then we will find and InterForm will be open. and the page is go to last page.(see Pageing and records)

but some times we need it go to first page. don't last page.
Becase we hope datasource order by id Descending.

Btw:I know how to set currentPage to fristpage after Insert
Lucania
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
152 views
Hi

I'm placeing RadMenu in page and add made EnableEmbeddedScripts as false for this control and adding javascript files through code like this

protected void Page_Load(object sender, EventArgs e)

        {

             RadMenu1.EnableEmbeddedScripts = false;

            ScriptReference referenceCore = AddJSReference("Telerik.Web.UI.Common.Core.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceCore.Name, referenceCore.Path);

            ScriptReference referenceQuery =AddJSReference("Telerik.Web.UI.Common.jQuery.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceQuery.Name, referenceQuery.Path);

            ScriptReference referenceQueryPlugin = AddJSReference("Telerik.Web.UI.Common.jQueryPlugins.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceQueryPlugin.Name, referenceQueryPlugin.Path);

            ScriptReference referenceNavigationScripts = AddJSReference("Telerik.Web.UI.Common.Navigation.NavigationScripts.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceNavigationScripts.Name, referenceNavigationScripts.Path);

            ScriptReference referenceRadMenuScripts = AddJSReference("Telerik.Web.UI.Menu.RadMenuScripts.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceRadMenuScripts.Name, referenceRadMenuScripts.Path);

 

        }

 

        public ScriptReference AddJSReference(string scriptName, bool IsExecutingAssembly, Control objectControl)

        {

            string[] Names;

            string DLLName;

            string VersionNumber;

            string Culture;

            string PublicKeyToken;

            ScriptReference reference = new ScriptReference();

            reference.Name = scriptName;

            if (IsExecutingAssembly)

                reference.Assembly = Assembly.GetExecutingAssembly().FullName;

            else

                reference.Assembly = Assembly.GetAssembly(objectControl.GetType()).FullName;

 

            Names = reference.Assembly.Split(',');

            DLLName = Names[0].Replace("\\", "");

            VersionNumber = Names[1].Split('=')[1].Replace("\\", "");

            Culture = Names[2].Split('=')[1].Replace("\\", "");

            PublicKeyToken = Names[3].Split('=')[1].Replace("\\", "");

            reference.Path = "~/MyScriptHandler.ashx?Assembly=" + DLLName +

                "&VersionNumber=" + VersionNumber +

                "&Culture=" + Culture +

                "&PublicKeyToken=" + PublicKeyToken +

                "&ResourceName=" + reference.Name;

 

            return reference;

 

        }



After running this page MenuItems are not appearing on click of main menu. Please suggest some sample code or work around to get rid of this issue.

 

Peter
Telerik team
 answered on 27 Apr 2012
1 answer
142 views
I have a page that opens a radWindow (called "radUserManager") and load the UserManager.aspx page:

<telerik:RadWindow ID="radUserManager" runat="server" 
    NavigateUrl="UserManager.aspx" Height="500" Width="950" Modal=true 
    Style="z-index: 7001" Behaviors="Close, Reload" Top="-500px"></telerik:RadWindow>

On UserManager.aspx, I have a radButton like this:
<telerik:RadButton ID="cmdCancel" runat="server" Skin="Windows7" Text="Cancel" Width="75px" OnClientClick="CloseWindow(); return false;" >
</telerik:RadButton>

The CloseWindow code looks like this:
function GetCommentRadWindow() {
  var oWnd = GetRadWindowManager().getWindowByName("radUserManager");
    return oWnd;
}
function CloseWindow() {
    GetCommentRadWindow().close();
}

Problem is, the window does not close. Nothing seems to happen.
 
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?