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

How do I determine if a postback was caused by a node expanding?

1 Answer 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
DAVE
Top achievements
Rank 1
DAVE asked on 22 Jun 2010, 07:27 PM
I have a load-on-demand tree (i.e. most nodes have node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack).  In the Page_Load method how can I determine if the postback was caused by a node expand event?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Jun 2010, 08:14 AM
Hi Dave,

You can check first whether it's callback and then the id of the treeview like this:

if(Page.IsCallBack)
{
  String callBackId = Request.Form["__CALLBACKID"].ToString();
}

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
DAVE
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or