This is a migrated thread and some comments may be shown as answers.

Node_expand

3 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rishi
Top achievements
Rank 1
Rishi asked on 03 Sep 2008, 07:32 AM
can u help me to find out why the Events   

rtreeNavigation_NodeExpand  and  

rtreeNavigation_NodeCollapse
 
are not geting fired when i expand or collaspe the node.

Is there any specific propery to set ????


My Tree View:-

<radT:RadTreeView ID="rtreeNavigation" runat="server" Skin="Web20" TabIndex="2" SkinsPath="~/RadControls/RadTree/Skins/"
ShowLineImages="False" AutoPostBack="True" onnodeexpand="rtreeNavigation_NodeExpand" singleexpandpath="True" onnodeclick="rtreeNavigation_NodeClick" onnodecollapse="rtreeNavigation_NodeCollapse">
</
radT:RadTreeView>


Thanks n Regards
Rishi
(Gray Cell Technologies Exports)

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2008, 07:56 AM
Hi Rishi,

Expanding a node should trigger postback only if you set the expand mode of the node to ServerSide.

ASPX:
<telerik:RadTreeView ID="RadTreeView1"   runat="server"  OnNodeCollapse="RadTreeView1_NodeCollapse" OnNodeExpand="RadTreeView1_NodeExpand"
                    <Nodes> 
                        <telerik:RadTreeNode Text="Nodes"  ExpandMode="ServerSide" > 
                       



Thanks
Shinu.
0
Rishi
Top achievements
Rank 1
answered on 03 Sep 2008, 09:17 AM
Hi Shinu

But it will Generate a postback.Which i don't want .
 
As the NodeClick Event is get fired without Post back can't it be possible to fire the Expand event without Postback to Server.









Thanks n Regards
Rishi
0
Princy
Top achievements
Rank 2
answered on 04 Sep 2008, 11:03 AM
Hi Rishi,

One suggestion will be to ajaxify RadTreeView using RadAjaxManager or RadAjaxPanel to prevent the flickering that occurs on clicking the Tree node.

Regards
Princy.
Tags
TreeView
Asked by
Rishi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rishi
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or