Link to home
Start Free TrialLog in
Avatar of Mayank S
Mayank SFlag for India

asked on

Tree View IE web control

Hi folks,

I have an IE tree-view web control in an ASP.NET application. The tree view is displayed in a pop-up modal window, where the window does not have any scroll bar, where as the tree view control has scroll bars. Now the problem is on load some node is selected by default (depending on some business rules).

But if this node is not visible in the focused area of the tree view control, one has to scroll down the control to view the selected node. Instead I was looking forward to some mechanism by which a selected node automatically scrolls and is visible in the focus-area of the tree view control.
 
My requirement seems to be similar to EnsureVisible() method in a Windows Forms Tree View ;-)

Any pointers on the same will be of great help.

Thanks,
Mayank.
Avatar of mmarinov
mmarinov

Hi Mayank and sorry for not posting here but in the other question
i suggest you to try SmartNavigation=True in the @Page
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebUIPageClassSmartNavigationTopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconPage.asp


B..M
Avatar of Mayank S

ASKER

Hi mmaroniv,

Sorry, the SmartNavigation = "true" still doesn't work. I was told by some people that its not possible to obtain scrolling in the IE treeview.

One work-around which has been suggested by some is that I should add the nodes to the tree-view such that the node to be selected is always added first and remains at the top always (hence visible) - but well, the requirements may go against that - the case might be that I want all nodes to be in alphabetical order and based on some business rules, I want to select a node in the middle.

Any other suggestions?

Thanks,
Mayank.
mmarinov,

From what I have found out, I guess it is not possible to implement scrolling in the IE web TreeView (it is possible only at Window level). Do you have any objections if I get this question deleted?

Mayank.
Hi mayankeagle,
Of course I don't have any objections - it is your right for deleting the question - i haven't answer

B..M
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial