Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
229 views
Using the following code in an aspx page:

<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
</div>          
    </form>
</body>

and in a Global.asx codebehind:

public class Global : System.Web.HttpApplication
    {        
        void Application_PreRequestHandlerExecute(object src, EventArgs e)
        {
               Session["test"] = "Test";
        }
    }

I get an HttpException error saying that "Session state is not available in this context".

Thanks in advance and I hope this is enough information and for reference my web.config file is as follows:

<?xml version="1.0"?>
<configuration>
    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>

    <connectionStrings/>
    <system.web>
        <pages enableEventValidation="false" theme="DefaultTheme" />
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation debug="true">
            <assemblies>
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add assembly="Telerik.Charting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>

        <httpHandlers>
            <remove path="*.asmx" verb="*" />
            <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               validate="false" />
            <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               validate="false" />
            <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               validate="false" />            
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
               validate="false" />
        </httpHandlers>

        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows"/>
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>







Pivetal
Top achievements
Rank 1
 answered on 24 Oct 2008
1 answer
170 views
I have a failry complex page that has two different client side events that call the .click() method of a Tollbar Button also on the page.  The first instance is when the user clicks a menu item on a context menu and the second is when a user clicks an LinkButton in a RadGrid.  In the first case, the click() method causes the postback to occur and thus the toolbar button server side event to be called.  In the case with the RadGrid, then click() method is called, but the postback never occurs.  In fact, after the click() method is called from the RadGrid, the context menu on the page no longer works.

Any ideas what might be blocking the postback from firing?

Thanks,
Kevin
Peter
Telerik team
 answered on 24 Oct 2008
1 answer
74 views
I am using a master page, and the page that is in the contentplaceholder has a radtooltipmanager in it.  The main page is using a datalist and in the itemdatabound event for the datalist I added targetcontrols for specific values to open a custom web user control for the tooltip.
In the master page I added javascript to show a loadingpanel on page load based on examples I found on this forum.  By doing this it causes the the page load event of the contentplaceholder page to fire twice and hence it loses the targetcontrols that were added to the radtooltipmanager.  If I remove the javascript to show a loadingpanel on page load, everything works.

Any ideas on how to handle this situation?

Thanks!
Svetlina Anati
Telerik team
 answered on 24 Oct 2008
1 answer
111 views
Is it possible to set the DatePopupButton-Tooltip text for the date picker that is shown in the header of the RadScheduler?  This is the only value that I cannot find a way to localize.

Thanks.

 

Peter
Telerik team
 answered on 24 Oct 2008
1 answer
74 views
Hi

I have just (successfully) installed the LITE version of the RAD Editor and it even displays my custom CSS styles (I defined them in CssEditor.css). So basically everything is fine - well, nearly.

When I open the editor, no CSS overlay is used. By that, I mean that the styles are not displayed as they are displayed later on (which is ok). Is this the default behaviour or should the Editor show the final style directly?

I am using Sharepoint Services (no the Sharepoint Server) and I cannot find the files you mentioned (HtmlEditorCustomStyles.css, HtmlEditorTableFormats.css). In the given directory I can only find the files: calendar.css, core.css, datepicker.css, help.css, menu.css, owsnocr.css.

Thank you for your response
Lini
Telerik team
 answered on 24 Oct 2008
1 answer
115 views
Any example to use radcombo with ObjectDatasource with loadonDemand.  Datasource has 80K rows. Right now combobox is terribly slow on opening dropdown after clicking on combobox arrow. 

Thanks,Praveen.
Rosi
Telerik team
 answered on 24 Oct 2008
1 answer
133 views
I have a tab strip that is longer then the page, so I utilize the 'scroll' buttons to move it left and right. The problem is when the page is wider then the strip when initialy loaded, but then the page gets resized toa smaller width - the 'scroll' buttons are still inactive even though there anaccessible tabs. How can I correct that?
Paul
Telerik team
 answered on 24 Oct 2008
3 answers
95 views
-In documentation,  currentNode.get_parent()!=null is suggested as good condition to find the last, top node as .get_parent() should return null for TreeView. This works fine if tree view is not in RadPane (not tested for other containers). When TreeView is in RadPane, .get_parent() is not null for treeview as RadPane is considered Parent for some reason. What is the solution to this?

-How can one limit number (or type) of characters entered in RadTree node durig editing?

Alex
Veselin Vasilev
Telerik team
 answered on 24 Oct 2008
1 answer
133 views
Im running the eval version:

1): Created a simple test Web app with just the basic upload control requirements. Sample ran w/out error on dev machine, published to a test Website (IIS 6) and received the following error:

"Could not load file or assembly 'Telerik.Charting"

Once I copied that DLL to the BIN folder it worked properly. I am not using any of the charting functionality and its not referenced in the project (only Web.UI is referenced). Is this expected?

2): EDIT - Nevermind, I found the info on modifing web.config
Sample works fine on files upto around 4MB, but attempts to upload files over 5MB fail with: "Post size exceeded allowed limits.". All properties in the Upload control are default, no limit was set by me - I'm asssuming there is a limit with the eval? If so, can you advise what other limitations exist with the eval version so I don't spend time evaluating a problem vs a limitation?

Regards,

Tim

Paul
Telerik team
 answered on 24 Oct 2008
5 answers
165 views
Hi

Has anyone created a style sheet to imitate a normal ASPX / HTML dropdown ?

Yeh, call me backward, but the rest of my app is clean basic controls, and throwing a large styled RAD ComboBox in makes it look out of place..

Any help with making it look like a normal dropdown would be great.

thanks

Andrew
Flemming Ottosen
Top achievements
Rank 1
 answered on 24 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?