Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > treeview server events

Thread Tools

treeview server events

Sandra Castellanos
Posts: n/a
Hi people,

I am using the treeview from the namespace Microsoft.Web.UI.WebControls and
I need it to trigger a server event when I click on a node but not when I
expand or collapse. Here I have found several problems I could use some help
to deal with:

- I only set the event onselectedindexchanged to a value, but it still goes
to the server when I expand or collapse and sometimes it gets stuck there, I
don't know why :'(
- My home page shows the tree but none of the items is selected at the
beginning, the home page has some welcome messages and stuff.... However,
the first item appears selected. So if I click on it, nothing happens,
because the selected index isn't changing :'( :'( :'( :'(
- The onselectedindexchange event only returns the index of the node I
clicked on, not the id not the text. But it's no use to me, I need the ID I
assigned to it, and I need to know who it's parent and its grandparent and
so on are in order to build a cannonical path I have to show on top of the
page... The way I'm dealing with it right now isn't very good in terms of
performance, I'm building a HashTable mapping the indexes in the treeview to
my ID and storing it in the viewstate....

Please please if you know how to deal with these issues let me know



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the Page from a TreeNode (treeview 's element) : addinga context menu to a treeview abargaddon ASP .Net Building Controls 0 01-17-2008 11:05 AM
ASP.NET 2.0 TreeView - Programatically Selecting A TreeView Node =?Utf-8?B?VHltYm93?= ASP .Net 2 01-10-2006 03:51 AM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
TreeView not rendering nodes? Cacheing of a TreeView Per Salmi ASP .Net Web Controls 1 10-15-2003 01:15 PM