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

RadDataPager Routing, DialogHandler Problems

1 Answer 50 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Michael asked on 08 Jun 2012, 12:25 AM

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

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 13 Jun 2012, 01:15 PM
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.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question