2

Closed

PagingBulletedListExtender resets page

description

Hi,

I have a BulletedList with LinkButton as DisplayType and a PagingBulletedListExtender inside a UpdatePanel.
I recently updated AjaxControlToolkit to the version 15.1, before that it was version 3.

However, after updating the control now resets the page when I click on a link.

For example I click on the page for letter "C" and after that I click on a name.
With version 3 the bulleted list would still contain all names starting with "C".
With version 15.1 it resets the page to first letter ("A" or some number).

The only thing I changed is the AjaxControlToolkit. Can someone verify this behavior and say
wether it's a bug or a feature?

Thank in advance and kind regards
Chris
Closed Mar 10, 2016 at 5:21 PM by MikhailTymchukDX
This issue was moved to GitHub as a part of the AJAX Control Toolkit migration process.
Please follow this link to continue working on the issue: https://github.com/DevExpress/AjaxControlToolkit/issues/4

comments

MikhailTymchukDX wrote Jan 27, 2016 at 9:26 AM

Would you please provide both versions of your sample so we can research them?

ChrisOs wrote Jan 27, 2016 at 9:34 AM

The version where it worked was 3.0.20820.0
The version where it is not working is 15.1.4.0

Thanks for the quick reply!

MikhailTymchukDX wrote Jan 27, 2016 at 11:05 AM

By versions of a sample I meant a sample project with the BulletedList and corresponding layout.
Would you please attach these archived projects to this workitem?

ChrisOs wrote Jan 27, 2016 at 11:52 AM

Ah, I see, my bad.
Wouldn't it be sufficient if I just provide the sample with the newest version?
I mean, the behavior is kind of obvious and the question is wether it is intended.

MikhailTymchukDX wrote Jan 27, 2016 at 1:22 PM

I don't know what release AJAX Control Toolkit v3.0.20820.0 dll belongs to, so it will be more convenient to provide an old, non-upgraded version of the project, so that I can upgrade it to the latest version.

ChrisOs wrote Jan 27, 2016 at 2:17 PM

That is kind but not possible as I cannot publish the project.

I will try and build a minimal project that demonstrates the problem with the current release
of ajax.

ChrisOs wrote Feb 24, 2016 at 12:03 PM

Hi,

sorry for the late reply.
I have a mini project demonstrating the problem, it's fairly simple:
Just put a BulletedList with some values inside an UpdatePanel,
add BulletListeExtender and a label showing the selected value.

Upload does not seem to work, so here is the code:

Test.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="BulletListTest.Test" %>
<%@ Register TagPrefix="cc1" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=15.1.4.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" />
        <div>
            <asp:UpdatePanel runat="server">
                <ContentTemplate>
                    
                    <asp:BulletedList ID="blTest" runat="server" OnClick="blTest_OnClick" DisplayMode="LinkButton" BulletStyle="Square">
                        <asp:ListItem Text="A" Value="A" />
                        <asp:ListItem Text="B" Value="B" />
                        <asp:ListItem Text="C" Value="C" />
                        <asp:ListItem Text="D" Value="D" />
                        <asp:ListItem Text="E" Value="E" />
                        <asp:ListItem Text="F" Value="F" />
                        <asp:ListItem Text="G" Value="G" />
                        <asp:ListItem Text="H" Value="H" />
                    </asp:BulletedList>
                    
                    <cc1:PagingBulletedListExtender ID="blTest_PagingBulletedListExtender"
                        runat="server" ClientSort="True" Enabled="True"
                        SelectIndexCssClass="lbStandardTV" TargetControlID="blTest"
                        UnselectIndexCssClass="lbStandardTV" />

                    <asp:Label runat="server" Text="Selected value: " />
                    <asp:Label runat="server" ID="lblTest" />

                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
Test.aspx.vb
Public Class Test
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub blTest_OnClick(sender As Object, e As BulletedListEventArgs)
        lblTest.Text = blTest.Items(e.Index).Value
End Sub
End Class
The webform shows the behavior described above.
Can you verify that?

Kind regards
Chris