Monday, March 26, 2012

TreeView inside UpdatePanel, childnode NOT deselecting.

I have a treeview sitting inside a updatepanel that has ChildrenAsTriggers set to false.
On Page_Load, I programmatically selected expanded a treenode and selected a node, ie

treenode.Expand();
childnode.Select();

PROBLEM:

(Highlighted = SelectedNodeStyle)

When i select another node on the page, the node that i selected programmatically stays highlighted.
Therefore, the treeview now has a NEW selected node, but two highlighted node.

Any ideas??



It is not supported ... sorry..

http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx

The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an UpdatePanel control:

TreeView and Menu controls.

Web Parts controls. For more information, see ASP.NET Web Parts Pages.

FileUpload controls when they are used to upload files as part of an asynchronous postback.

GridView and DetailsView controls when the EnableSortingAndPagingCallbacks property is set to true. The default is false.

Login, PasswordRecovery, ChangePassword, and CreateUserWizard controls that have not been converted into editable templates.

The Substitution control.

No comments:

Post a Comment