CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 9/3/2003 5:58:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 29 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
neuralc
Asp.Net User
Working with events and SelectedNodeIndex in TreeView9/3/2003 5:58:25 PM

0

Hi all,

I'm trying to use a TreeView IEWebControl in a User Control to implement my site navigation. So the only think that miss is the persistence of the state of the tree. For that I hae only to get the SelectedIndexChange and put in the Session object the SelectedNodeIndex.

My problem is: the SelectedIndexChange event is never fired. And on the Page Unload event the SelectedNodeIndex is always "0" (maybe the control at this point is available...).

Some one have some sugestion?

ThX

NeuralC
neuralc
Asp.Net User
Re: Working with events and SelectedNodeIndex in TreeView9/4/2003 3:10:50 PM

0

Hi all,

After a day of testing I found a solution:

1. On my aspx I have defined a JS function to get the treeview state:
<script for="TreeView1">

function get_state(){
var control = document.getElementById('Menutree_TreeView1');
if( control != null ){
//alert(control.clickedNodeIndex);
return control.clickedNodeIndex;
}else{
//alert("Control Not Found");
return "0";
}
}

</script>

2. In the NavigateURL property I put:

NavigateUrl="javascript:window.navigate('webform3.aspx?tstate=' + get_state())


Next is easy is only get the tstate parameter on the request object, and set the SelectedNodeIndex of the treeview


Hope helps,

NeuralC
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Mastering Visual Basic.NET Authors: Evangelos Petroutsos, Pages: 1153, Published: 2002

Web:
Working with events and SelectedNodeIndex in TreeView - ASP.NET Forums Working with events and SelectedNodeIndex in TreeView. Last post 09-04-2003 11: 41 AM by neuralc. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Treeview control's selectednodeindex property in javascript - ASP ... Treeview control's selectednodeindex property in javascript ... Hi..this is working to suppress the expand event and for avoiding postback ...
CodeProject: ASP.NET TreeView Control & the Client's Browser. Free ... selectedNodeIndex = event.treeNodeIndex; ChangeText( 'oncontextmenu' ) ..... I need a multiselect treeview control for a project I'm working on right now. ...
Inside Microsoft: Working with TreeView WebControl Part 1 – Basics To do so I have to use the SelectedNodeIndex attribute of the TreeView element. .... Next: Working with TreeView WebControl Part 2 – Handling Events >> ...
CodeProject: ASP.NET TreeView Control & the Client's Browser. Free ... Also, in the treeview expand event to get the nodeData change the following line treeNode = tree.getTreeNode( tree.selectedNodeIndex ); to treeNode = tree. ...
The ASP Column: Tree Controls with XSL In addition, TreeView generates events indicating that nodes have been ... is a bit more complicated in that the TreeView's SelectedNodeIndex is a string. ...
Inside Microsoft: Working with TreeView WebControl Part 2 ... After this introduction on how to handle TreeView events, I want show to you how you can ..... << Previous: Working with TreeView WebControl Part 1 – Basics ...
SQL Project: ASP.NET TreeView Control & the Client's Browser. Free ... selectedNodeIndex = event.treeNodeIndex; ChangeText( 'oncontextmenu' ); }; There is a JavaScript function that allows us to get a handle to the TreeView ...
Find TreeNode.Text in Treeview - Xtreme .NET Talk Anyone know of a quick to find a value in a Treeview by index or going ... SelectedNodeIndex) Response.write("Selected node display text: ...
Supressing Treeview Expand and collapse events : treeview, node ... Supressing Treeview Expand and collapse events ... SelectedNodeIndex cannot be set to an undisplayed node (all parents of a selected node must be expanded). ...






document not named

please check this link http://www.kerala.bsnl.co.in/newdqasp/newdq1.asp

generate page at run time

problems creating a folder..

converting a windows applications to a web application

“hellow world” of share point

how to add new array elements to that class?

redirect default page to "/"

error handling

need help for presentation

quotation mark to char array.

how good the asp.net 2.0 performance will be?

time card device and asp.net

possible to use dialogarguments in asp???

namespace problem

loop through web controls

how to output response.outputstream into a text box?

viewing client file system information

element positioning

specified cast is not valid but i didnt change anything!

double value

school project

proper way to create initial page view using page.ispostback

i'm an asp.n00b and i need to create a survey!

send a message to an msn account

changing property in a .ascx-file

posting to an asp page

converting aspx or ascx to assemblies

shorcuts

search engine with asp.net

   
  Privacy | Contact Us
All Times Are GMT