Home - Forums-.NET - FlyTreeView (ASP.NET) - __dopostBack

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

__dopostBack
Link Posted: 06-Dec-2005 09:12
Is it possible to trigger node events using __doPostBack if can you please share and example. I'm trying __doPostBack("treeView1", "ONBEFOREEXPAND"). I'm new to this and am a little confused.
Link Posted: 06-Dec-2005 09:55
No, this is not the case. You should not use __doPostBack directly. All you have is a client-side and server-side models of treeview and you should probably better change the PostBackOnExpand property of node or nodetype or defaultnodetype of the treeview.
Link Posted: 07-Dec-2005 01:54
i want to raise an event without posting back the whole page. I do it with many other control. For example i have a grid for which I trigger the cellClick event by doing.


function Grid0cellClick(){
var row = Grid0.ActiveRow;
var col = Grid0.ActiveCol;
__doPostBack("Grid0", "CellClick," + row + "," + col);
}


Is there anyway to raise serverside events without posting back the whole page with the treeview control.
Link Posted: 07-Dec-2005 02:00
I would like to do something like this


function TreeView0NodeExpanded(){
if (window.event.eventName == 'ONBEFOREEXPAND') {
__doPostBack("TreeView0", "NodeEvent");}
}
Link Posted: 07-Dec-2005 22:15
i want to raise an event without posting back the whole page

But actually a call to _doPostback causes a whole page postback, isn't it?
Doesn't the PostbackOnExpand property cover your requirements?