How to disable dropping for both two trees:
Server code:
//Tree1:
oTree.DropDisableId = "tree1_a0_0,tree1_a0_1,tree1_a0_2";
...
//Tree2:
oTree2.DropDisableId = "tree2_b0_0_2,tree2_b0_1_2,tree2_b0_2_2";
Tips
1. Right after:
<ASP:Literal id="Literal1" EnableViewState="false" runat="server" />
Add this:
<script type="text/javascript"> var sGlobalNoDrop = sNoDrop; </script>
2. Right after:
<ASP:Literal id="Literal2" EnableViewState="false" runat="server" />
Add this:
<script type="text/javascript"> sGlobalNoDrop += ','+ sNoDrop; </script>
3. At the end of HTML page, add this javascript code:
<script type="text/javascript"> var sNoDrop = sGlobalNoDrop; </script>
|