basic implementing problem

8 posts, 0 answers
  1. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 15 Jun 2009 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 15 Jun 2009 Link to this post

    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.

  5. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 15 Jun 2009 Link to this post

    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!


  6. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 18 Jun 2009 Link to this post

    k got that fixed ... can close this thread :)

    thx mario
  7. Adrian
    Adrian avatar
    12 posts
    Member since:
    Jan 2009

    Posted 01 Sep 2009 Link to this post

    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.
  8. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 01 Sep 2009 Link to this post

    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.


  9. Eric Fransen
    Eric Fransen avatar
    1 posts
    Member since:
    Nov 2008

    Posted 01 Sep 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017