[Solved] Production issue with EnableSEOPagerLinks on RadGrid pagination urls on cookieless session

1 Answer 26 Views
Grid Navigation
Jonathan
Top achievements
Rank 1
Jonathan asked on 03 Nov 2026, 04:54 PM | edited on 04 Nov 2026, 07:36 AM

On all other environments (DEV/QA) we do not see the pagination links with control element querystring parameters added but in our production enviroment we do and they fail to work when clicked.

DEV/QA 
<!-- url removed by admin -->

Production

<!-- url removed by admin -->

Link does not function to navigate pagination Telerik 2022.1.302.45 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Nov 2026, 07:36 AM

Hello Jonathan,

Thank you for the details. I could not open your URLs because they lead to a login page. The symptom matches a known issue, and it is very likely the cause.

When SEO paging is not enabled explicitly, RadGrid turns it on automatically if it detects a web crawler. In that mode the pager renders links with ...RadGrid1ChangePage=N query string parameters instead of postback links, which is what you see in production. The crawler check relies on Request.Browser.Crawler, which comes from the ASP.NET browser definition files. For User-Agent strings those files do not recognize, it can return true for a regular browser. That would explain why only one environment is affected, since the environments can differ in User-Agent handling (proxy, load balancer, browser definition files).

This is tracked here: RadGrid SEO paging turns on due to crawler detection. The fix replaces Browser.Crawler with a direct User-Agent check and is planned for the Q4 2026 release (11 November).

As a workaround, you can turn SEO paging back off after the grid initializes. In the code-behind of the page:

protected void Page_Load(object sender, EventArgs e)
{
    RadGrid1.PagerStyle.EnableSEOPaging = false;
}
The grid sets this flag in its own OnInit, which runs before Page_Load, so this overrides it before the pager is rendered. It also stops the page size combo from redirecting to a SEO URL. If you only need to deal with the page size combo, you can instead override Telerik.Web.UI.Grid.ChangePageSizeComboHandler on the client.

To confirm the cause, please check whether Request.Browser.Crawler returns True for your browser in production (for example, log it from Page_Load).

An alternative workaround is the following JavaScript override:

let $T = Telerik.Web.UI;

if ($T && $T.Grid) {
    $T.Grid.ChangePageSizeComboHandler = function (sender, args) {
        var item;
        if (args.get_item) {
            item = args.get_item();
        } else if (args.get_index) {
            item = sender.get_items().getItem(args.get_index());
        }

        if (item) {
            var ownerTableViewId = item.get_attributes().getAttribute('ownerTableViewId');
            var newPageSize = null;

            if (sender.get_value) {
                if (sender.get_value()) {
                    newPageSize = sender.get_value();
                } else {
                    newPageSize = sender.get_text();
                }
            } else {
                if (item.get_value()) {
                    newPageSize = item.get_value();
                } else {
                    newPageSize = item.get_text();
                }
            }


            if (ownerTableViewId && newPageSize) {
                var value = parseInt(newPageSize, 10);
                var tableView = $find(ownerTableViewId);

                if (tableView) {
                    var seoUrl = item.get_attributes().getAttribute('seoRedirectUrl');

                    if (seoUrl) {
                        // Comment out or remove this line to prevent the page from redirecting to the SEO URL
                        // window.location.href = seoUrl;

                        return false;
                    }

                    tableView.set_pageSize(value);
                }
            }
        }
    };
}

Important - security: Telerik UI for ASP.NET AJAX 2022.1.302 is affected by several critical vulnerabilities, including remote code execution chains. We strongly recommend upgrading to the latest version as soon as possible. Please review these bulletins:

I also edit your original post and removed the production and DEV/QA URLs (they contain your application path and session token). They are publicly visible and could be misused.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources! 
Tags
Grid Navigation
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or