mokundegrc
New Member
i have a webpage. The page has many tabs. one tab has a button - the button opens a treeview in a modalpopupextender. The treeview is built 'on-the-fly' and acts as a remote file and folder browser. works very well except for the issue that as the user expands the treeview beyond the point where the user has to scrool to expand , upon postback , the treeview jumps back to the top. I have read all the articles and right now im following this as it seems ok - See Dominic's Postmy website is contained in an asp.net update panel i have to reopen the ajax popup panel using the code behind below if that makes any differenceCode behind\[code\]AddFilesModal.Show();\[/code\]I get a javascript error on running the application "referenceError: 'TreeviewAdditems_Data' is undefined"Maybe this is because the treeview is not yet builtAny idea what the issue is?Javascript (Placed in the Head of my Markup)\[code\]<script type="text/javascript"> try { var name = TreeViewAddItems_Data.selectedNodeID.value; var selectedNode = $get(name); if (selectedNode) { selectedNode.scrollIntoView(true); } } catch (error) { alert(error); }</script>\[/code\]