Scroll position not well maintained after ajax call

2 posts, 0 answers
  1. Tonya
    Tonya avatar
    12 posts
    Member since:
    Mar 2008

    Posted 26 Aug 2015 Link to this post

    I have some cascading comboboxes.  No matter where I am when I start, when I select the first and the other is updated, the 1st keeps focus, but the page scrolls up so that the ​1st control is at the very bottom of the browser window.  What can I do to change this?

     

    <table>
        <tr>
            <td>
                <asp:Label ID="lblPosition" runat="server" CssClass="Label"></asp:Label>
            </td>
            <td>
                <CW:ComboBox ID="rcbPosition" DataTextField="PosName" DataValueField="PosNum" Width="204px"
                    runat="server" OnSelectedIndexChanged="rcbPosition_SelectedIndexChanged" AutoPostBack="true"
                    CausesValidation="false" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectSaveChangesToAllSessions">
                    <Items>
                        <Telerik:RadComboBoxItem Text="<%$Resources:LanguageResource, AllPositions%>" Value="0" />
                    </Items>
                </CW:ComboBox>
            </td>
            <td>
                <asp:Label ID="lblSubPosition" runat="server" CssClass="Label"></asp:Label>
            </td>
            <td>
                <CW:ComboBox ID="rcbSubPosition" Width="204px" runat="server" DataTextField="SubPosName"
                    DataValueField="SubPosNum" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectSaveChangesToAllSessions">
                    <Items>
                        <Telerik:RadComboBoxItem Text="<%$Resources:LanguageResource, AllSubPositions%>"
                            Value="0" />
                    </Items>
                </CW:ComboBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblDistrict" runat="server" CssClass="Label"></asp:Label>
            </td>
            <td>
                <CW:ComboBox ID="rcbDistrict" DataTextField="DistName" DataValueField="DistNum" Width="204px"
                    runat="server" OnSelectedIndexChanged="rcbDistrict_SelectedIndexChanged" AutoPostBack="true"
                    CausesValidation="false" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectSaveChangesToAllSessions">
                    <Items>
                        <Telerik:RadComboBoxItem Text="<%$Resources:LanguageResource, AllDistricts%>" Value="0" />
                    </Items>
                </CW:ComboBox>
            </td>
            <td>
                <asp:Label ID="lblBuilding" runat="server" CssClass="Label"></asp:Label>
            </td>
            <td>
                <CW:ComboBox ID="rcbBuilding" DataTextField="BuildName" DataValueField="BuildNum"
                    Width="204px" runat="server" OnClientSelectedIndexChanged="SelectSaveChangesToAllSessions">
                    <Items>
                        <Telerik:RadComboBoxItem Text="<%$Resources:LanguageResource, AllBuildings%>" Value="0" />
                    </Items>
                </CW:ComboBox>
            </td>
        </tr>
    </table>
    <Telerik:RadAjaxManagerProxy ID="RadAjaxManagerCourse" runat="server">
        <AjaxSettings>
            <Telerik:AjaxSetting AjaxControlID="rcbPosition">
                <UpdatedControls>
                    <Telerik:AjaxUpdatedControl ControlID="rcbSubPosition" LoadingPanelID="LoadingPanel2" />
                </UpdatedControls>
            </Telerik:AjaxSetting>
            <Telerik:AjaxSetting AjaxControlID="rcbDistrict">
                <UpdatedControls>
                    <Telerik:AjaxUpdatedControl ControlID="rcbBuilding" LoadingPanelID="LoadingPanel2" />
                </UpdatedControls>
            </Telerik:AjaxSetting>
             
        </AjaxSettings>
         
    </Telerik:RadAjaxManagerProxy>
     
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel2" runat="server" />​

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 31 Aug 2015 Link to this post

    Hello Tonya,

    I have replied to the support ticket that you have submitted. I suggest we continue the conversation there. After the issue is resolved you can post the solution here. This can be helpful to someone facing similar issue.


    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top