I have a page that contains a variable number of TreeView objects lined up horizontally, with the TreeView objects being created during Page_Init. The structure is like this:
<div style="overflow:auto">
<RadAjaxPanel>
<asp:Table>
<asp:TableRow>
[ one asp:TableCell object per tree to be displayed ]
</asp:TableRow>
</asp:table>
</RadAjaxPanel>
</div>
Each RadTreeView uses a NodeTemplate to customize its display, as each node may contain various combinations of text and graphics. All of this works very well and displays correctly. I assign an ID to an element inside one particular node (or to the node itself, using Node.Attributes("id") = "FixedValue"). Assigning the ID works fine, and all the TreeViews continue to display properly. The ID is set in ClientIDMode=Static.
The problem comes when I try to use window.location.hash to make the external div scroll to display the element that I assigned an ID to. On Internet Explorer 10, this works correctly. In Firefox 20 and Chrome 26, the first node in the tree containing the element to which I am scrolling is vertically offset, moving it up and partially out of the visible area of the div (each node contains up to three lines of text; the first line is pushed out of the visible area). The other RadTreeView objects continue to display correctly; only the one tree containing the scrolled-to object is vertically repositioned.
Any thoughts on what might be causing this display issue? All three browsers I've tested on have been on Windows.
<div style="overflow:auto">
<RadAjaxPanel>
<asp:Table>
<asp:TableRow>
[ one asp:TableCell object per tree to be displayed ]
</asp:TableRow>
</asp:table>
</RadAjaxPanel>
</div>
Each RadTreeView uses a NodeTemplate to customize its display, as each node may contain various combinations of text and graphics. All of this works very well and displays correctly. I assign an ID to an element inside one particular node (or to the node itself, using Node.Attributes("id") = "FixedValue"). Assigning the ID works fine, and all the TreeViews continue to display properly. The ID is set in ClientIDMode=Static.
The problem comes when I try to use window.location.hash to make the external div scroll to display the element that I assigned an ID to. On Internet Explorer 10, this works correctly. In Firefox 20 and Chrome 26, the first node in the tree containing the element to which I am scrolling is vertically offset, moving it up and partially out of the visible area of the div (each node contains up to three lines of text; the first line is pushed out of the visible area). The other RadTreeView objects continue to display correctly; only the one tree containing the scrolled-to object is vertically repositioned.
Any thoughts on what might be causing this display issue? All three browsers I've tested on have been on Windows.