Treeview webcontrol problems with javascript

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
I am facing a prob with treeview with check boxes
When ever a javascript funtion is associated with Treeview, I am not able to
retrice the Values of checkboxes in the tree. When no Javascipt function is
associatead, every thing works fine.
Is it something to do with viewstate??

any help appreciated?
Sun

<ie:TreeView runat="server" id="TreeView1" AutoSelect="True">
<ie:TreeNode CheckBox="True" Text="My first Tree Node">
<ie:TreeNode CheckBox="True" Text="My second Tree Node">
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
</ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
<ie:TreeNode CheckBox="True" Text="My second Tree Node"></ie:TreeNode>
</ie:TreeNode>
</ie:TreeView>

<script for="TreeView1" event="oncheck">
var s = ""
var ev = window.event.srcElement
alert(ev);
</script>
 
Sun,

I see no vbnet language part, do you have that as well?

I see in your current code by the way no any relation to that.


Cor
 
Back
Top