Showing posts with label false. Show all posts
Showing posts with label false. Show all posts

Wednesday, March 28, 2012

TreeView in updatePanel , problem when visible is false

I have constructed a very simple webpage , an atlas updatepanel and TreeView inside and every thing goes O.k , until I set the initial value of the visible property of the treeview to false , here I added a button that when clicked , the visible of the tree is set back to true, now after the tree is visible , it is a big problem , a lot of javascript errors occurs and its nodes can't be collapsed or expanded and when clicking on some node the event SelectedNodeChanged is not raisedAny help to solve this problem is welcomed and appreciated...Thank you

TreeView control is not supported with UpdatePanel Control.


Actually , treeview is supported in atlas UpdatePanel and it does work

The only problem is that when the initial value of visible property of the tree is false

Any help is Appreciated

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.