Unplanned
Last Updated: 16 Jun 2020 11:54 by ADMIN
Victor
Created on: 09 Jun 2020 20:02
Category: DataPager
Type: Bug Report
0
RadDataPager's RadDataPagerGoToPageField works inconsistently

This behavior can be observed with the example below.

https://demos.telerik.com/aspnet-ajax/listview/examples/paging/pagingwithraddatapager/defaultcs.aspx

Enter a value for Page and click the Go button. Either the page will be updated to the expected page or the pager will fail to change the page. Clicking Go again usually seems to work if it failed. It may take a several tries to observe this behavior as it happens inconsistently.

1 comment
ADMIN
Peter Milchev
Posted on: 16 Jun 2020 11:54

Hello Victor,

Thank you for reporting this issue, we managed to replicate this with a very simplified markup and the issue seems to be caused by the fact that the <span> elements inside the button do not propagate the click event properly.

As a temporary workaround, you can use the following script:

<script>
    var $ = $ || $telerik.$;
    $(document).ready(function () {
        $("body").on("click", ".RadDataPager button > span", function (ev) {
            ev.preventDefault();
            $(this).closest("button")[0].click();
        })
    });
</script>

Also, as a token of gratitude for helping us identify the issue, I have updated your Telerik points.

Regards,
Peter Milchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.