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

Scrollbar position in radtreeview

2 Answers 225 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Colince
Top achievements
Rank 1
Colince asked on 20 Jun 2013, 10:50 AM
Hi

I have and issue regarding the scrollbar position. As you can see in the code below i have the radtreeview inside the radlistbox and il would like that when i click on the node, the scrollbar scrolls to the selected node position.

<asp:Panel ID="Panel2" runat="server">
    <telerik:RadListBox ID="RadListBox1" runat="server" Height="200" Width="250"
                        AllowTransfer="true" ButtonSettings-Position="Right"
                        ButtonSettings-TransferButtons="All" TransferMode="Copy"
                        SelectionMode="Multiple" TransferToID="rlbDealers"
                        AutoPostBackOnTransfer="true" CausesValidation="false"
                        OnTransferred="rlbListAvailable_Transferred">
        <ItemTemplate>
            <div>
                <telerik:RadTreeView ID="rtvDealersAvailable" runat="server"
                                     OnLoad="rtvDealersAvailable_Load"
                                     MultipleSelect="true"
                                     OnClientNodeClicked="selectFatherAndChildNodes">
                </telerik:RadTreeView>
            </div>
        </ItemTemplate>
        <Items>
            <telerik:RadListBoxItem />
        </Items>
    </telerik:RadListBox>
    <telerik:RadListBox ID="RadListBox2" runat="server" SelectionMode="Multiple"
                        Height="200" Width="250">
    </telerik:RadListBox>
</asp:Panel>

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jun 2013, 01:35 PM
Hi,

One suggestion is you can use scrollIntoView  function. Please have a look into this documentation.
Hope this will help you.

Thanks,
Shinu.
0
Shinu
Top achievements
Rank 2
answered on 20 Jun 2013, 01:36 PM
Hi,

One suggestion is you can use scrollIntoView  function. Please have a look into this documentation.
Hope this will help you.

Thanks,
Shinu.
Tags
TreeView
Asked by
Colince
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or