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

Scroll position not well maintained after ajax call

1 Answer 50 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Solutionwhere
Top achievements
Rank 1
Solutionwhere asked on 26 Aug 2015, 06:25 PM

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" />​

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 31 Aug 2015, 11:45 AM
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
Tags
Ajax
Asked by
Solutionwhere
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or