This is a migrated thread and some comments may be shown as answers.

basic implementing problem

7 Answers 222 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 15 Jun 2009, 01:48 PM
hi,

im using telerik on my masterpage as followed. I registered telerik, i have the RadScriptManager and the RadMenu but in my IE i get a normal list of my radmenuitems. no nice graphics or anything ...

------------masterpage code---------
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/Controls/Logout.ascx" TagName="Logout" TagPrefix="uc2" %>
...
<form id="form1" runat="server">
    
        <telerik:RadScriptManager ID="RadScriptManager" runat="server">
        </telerik:RadScriptManager>
            
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager" Runat="server">
        </telerik:RadStyleSheetManager>
            
        <telerik:RadSkinManager ID="RadSkinManager" Runat="server" Skin="Vista">
        </telerik:RadSkinManager>
    
         <table cellpadding="0" cellspacing="0">
            <tbody valign="top">
                <tr>
                    <td>
                        <asp:Image runat="server" ID="imgLogo" ImageUrl="~/Images/iflows_logo.jpg" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblTop" Text="labelname"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <uc2:Logout runat="server" ID="ucLogout" />                    
                    </td>
                    <td>
                        <telerik:RadMenu ID="RadMenu1" Runat="server" DefaultGroupSettings-Flow="Horizontal">
                            <Items>
                                <telerik:RadMenuItem Text="Documents">
                                    <Items>
                                        <telerik:RadMenuItem Text="Search"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="Upload"></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Settings">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </td>
                </tr>
                <tr>
                    <td>
                        
                    </td>
                    <td>
                        <asp:Label ID="errorLabel" runat="server"></asp:Label>
                        <div>
                            <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
                            </asp:ContentPlaceHolder>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>

------------/ masterpage code---------

shouldnt i be able to see the same style and effects as in the Telerik Live Demo ? And why not ? Or what ive done wrong?

thx Mario

7 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jun 2009, 01:51 PM
Hi Mario,

Most probably the HTTP handler required by RadScriptManager and RadStyleSheetManager is not properly registered. You can use the smart tag of any of those controls to register the HTTP handler.

Best wishes,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mario
Top achievements
Rank 2
answered on 15 Jun 2009, 02:38 PM
You mean the telerik httphandler in the web.config, i think i used that smarttag for registering the relerik httphandler.

----------web.config------------
<system.web>
...


<httpHandlers>
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
...
</system.web>
---------/web.config-------------

in the design tab of my master page i get following error from all telerik managers:

----------error rendering control------
An unhandled exception has occured.
Could not load file or assembly "Telerik.Web.UI, version=2009.1.402.35, ...." or one of its dependencies. The System couldnt find the rquired resource.
----------/error rendering control------

and at the radmenu following 'error creating control':
Failed to create designer"Telerik.Web.UI.RadMenu, Telerik.UI, Version:2009.1.402.35, ...."

my project reference of the telerik.UI.dll is correct.

0
Mario
Top achievements
Rank 2
answered on 15 Jun 2009, 03:33 PM
it was a security problem. I denied unnauthorized user my navigation.ascx (Radmenu).

are the aspx design tab errors normal ?

 thx for the first fast reply!


0
Mario
Top achievements
Rank 2
answered on 18 Jun 2009, 09:14 PM
k got that fixed ... can close this thread :)

thx mario
0
Adrian
Top achievements
Rank 2
answered on 01 Sep 2009, 07:30 AM
Hi Mario,

I am having the same problem with rendering a rad binary image.
I am using version 2009.2.701.35. I have referenced both Telerik.Web.UI and Telerik.Web.UI.Design and included them in the web.config, but still no luck. And i can't put any new telerik controls on the page.

What do you mean by "it was a security problem. I denied unnauthorized user my navigation.ascx (Radmenu)."
Can you be a bit more specific?

Thanks,
Adrian.
0
Mario
Top achievements
Rank 2
answered on 01 Sep 2009, 08:55 AM
Hi Adrian,

u can set the authorization in the webconfig.

I set it wrongly like follows:

<authorization>
      <deny users="?"/>
</authorization>

that denies your complete project to not logged in users. Better way is to set it to directories like for Publicpages as follows:

<location path="Publicpages">
  <system.web>
    <authorization>
	<allow users ="*" />
    </authorization>
  </system.web>
</location>

and i had my RadMenu in a ascx control which i placed in the "Controls" Subdirectory.
Which locations authorization i didnt configure (set in the webconfig).

cheers Mario.


0
Eric Fransen
Top achievements
Rank 2
answered on 01 Sep 2009, 09:00 AM
Hey Mario,

Thanks for your quick reply. Although i've just upgraded to the latest telerik release 2009.2.826, and now the designer works fine.
But i will remember your solution in case i have a scenario like that.

Thanks again and good luck,
Adrian.
Tags
Menu
Asked by
Mario
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Mario
Top achievements
Rank 2
Adrian
Top achievements
Rank 2
Eric Fransen
Top achievements
Rank 2
Share this question
or