RadDataPager Routing, DialogHandler Problems

2 posts, 0 answers
  1. Michael
    Michael avatar
    7 posts
    Member since:
    Aug 2012

    Posted 07 Jun 2012 Link to this post

    Hi, I’m currently experiencing a problem with the RadDataPager and the Dialog handlers.

    My application has a RadListView control with a RadDataPager in the layout. In the RadDataPager, I’m using the Routing functionality. In the Application_Start I have the relevant registration as documented in the forums here.

    The problem is, when I register routes it breaks the handlers for the Telerik Dialogs in the RadEditor and other such controls. I will post the code that I think is the source of the problem and where the problem arises.

    the aspx file has this section:
    <Telerik:RadListView ID="RadListView1" runat="server"
            <asp:PlaceHolder ID="ItemContainer" runat="server" />
            <Telerik:RadButton ID="InsertButton" runat="server"
                    Text="New Announcement"
                    Visible='<%# Not Container.IsItemInserted %>'>
                        <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
            <Telerik:RadDataPager ID="RadDataPager1" runat="server"
                    <Telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <Telerik:RadDataPagerButtonField FieldType="Numeric"
                            PrevButtonText="Prev" />
                    <Telerik:RadDataPagerButtonField FieldType="NextLast" />
             ... Templates omitted ...

    the class i use for the registering of routes is:

    Namespace SeoRouting
        ''' <summary>
        ''' Route Registering and other SEO Op functions and subs
        ''' </summary>
        ''' <remarks>TODO: Remarks to follow</remarks>
        Public Class Register
            Public Shared Sub Routes(ByVal Routes As System.Web.Routing.RouteCollection)
                Dim RouteValueDictionary As New System.Web.Routing.RouteValueDictionary()
                RouteValueDictionary.Add("Page", "1")
                Routes.MapPageRoute("AnouDefa", "en/Anou/{Page}", "~/en/Anou/Default.aspx", True, RouteValueDictionary)
                Routes.MapPageRoute("AnouMain", "announcements/Page{Page}", "~/en/Anou/Main.aspx", True, RouteValueDictionary)
            End Sub
        End Class
    End Namespace

    and the app start looks like this:

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    End Sub

    the web.config:

        <!--<add verb="*" path="*.psd" type="System.Web.HttpForbiddenHandler" />-->
        <add path="ChartImage.axd"
             verb="*" validate="false" />
        <add path="Telerik.Web.UI.SpellCheckHandler.axd"
             verb="*" validate="false" />
        <add path="Telerik.Web.UI.DialogHandler.aspx"
             verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx"
             verb="*" validate="false" />
        <add path="Telerik.Web.UI.WebResource.axd"
             verb="*" validate="false" />
            <remove name="ChartImage_axd" />
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
            <remove name="Telerik_Web_UI_DialogHandler_aspx" />
            <remove name="Telerik_RadUploadProgressHandler_ashx" />
            <remove name="Telerik_Web_UI_WebResource_axd" />
            <add name="ChartImage_axd" path="ChartImage.axd"
                 verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd"
                 verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx"
                 verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx"
                 verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_WebResource_axd"
                 type="Telerik.Web.UI.WebResource" verb="*"
                 preCondition="integratedMode" />

    so to be clear, when i have the routing on in the App_Start the dialogs don’t function throwing an error saying that the handlers are
    missing from the Web.config I reviewed This Telerik Document for help but couldn’t see the solution.

    Kind Regards.
    M Mason.

    Q1 2012
    ASP.NET 4.0 VB

  2. Pavlina
    Pavlina avatar
    6167 posts

    Posted 13 Jun 2012 Link to this post

    Hi Michael,

    You can try replacing Telerik.Web.UI.DialogHandler.aspx with Telerik.Web.UI.DialogHandler.axd in the web.config file and set the RadDataPager's DialogHandlerUrl property to "~/Telerik.Web.UI.DialogHandler.axd".

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top