Hi Admin,
I want to fire RadTreeView to expand and load data, to nodes dynamically and automatically. When I use normal asp.net tree view and its property ''PopulateOnDemand" and set 'OnTreeNodePopulate' to fire a function, it does the pupose.
 
 
 
 
So when the page loades,TreeView loades with a root node ("ALL") and hence forth, due to 'PopulateOnDemand' property its node gets fired(clicked), calling 'Node_Populate' function to handle the loading of nodes.
Now, THE QUESTION. Same thing I want in telerik. I already tried what documentation is available here and suggestion by experts here.
the is:- telerik property 'OnNodeExpand' fires only when a node is clicked by someone. I want to populate node automatically from root node itself. So please help what to do in this regard.
Here is what I have tried:-
ASPX File
CS FILE
PLEASE DON'T REFER ME ANY DOCUMENT. SEE IF YOU CAN GET MY PROBLEM.
Thanks a lot
                                I want to fire RadTreeView to expand and load data, to nodes dynamically and automatically. When I use normal asp.net tree view and its property ''PopulateOnDemand" and set 'OnTreeNodePopulate' to fire a function, it does the pupose.
ASPX:-
<asp:TreeView Runat="Server" OnTreeNodePopulate="Node_Populate" ID="treeView1"  OnTreeNodeExpanded="Node_Expand"><Nodes><asp:TreeNode Text="ALL"  PopulateOnDemand= "true" Value="0"  /></Nodes></asp:TreeView>CS file:-
public void Node_Populate(object sender, System.Web.UI.WebControls.TreeNodeEventArgs e)    {        if (e.Node.ChildNodes.Count == 0)        {            switch (e.Node.Depth)            {                case 0:                    FillTerritories(e.Node);                    break;                case 1:                    FillOrganizations(e.Node);                    break;                case 2:                    FillOffices(e.Node);                    break;            }        }    }Now, THE QUESTION. Same thing I want in telerik. I already tried what documentation is available here and suggestion by experts here.
the is:- telerik property 'OnNodeExpand' fires only when a node is clicked by someone. I want to populate node automatically from root node itself. So please help what to do in this regard.
Here is what I have tried:-
ASPX File
<telerik:RadTreeView Runat="Server" ID="RadTreeView1"  Skin="Vista" OnNodeExpand = "Rad_NodeExpand" >     </telerik:RadTreeView>CS FILE
protected void Rad_NodeExpand(object sender, RadTreeNodeEventArgs e)    {        if (e.Node.Nodes.Count == 0)        {            switch (e.Node.Level)            {                case 0:                    FillTerritories(e.Node);                    break;                case 1:                    FillOrganizations(e.Node);                    break;                case 2:                    FillOffices(e.Node);                    break;            }        }    }PLEASE DON'T REFER ME ANY DOCUMENT. SEE IF YOU CAN GET MY PROBLEM.
Thanks a lot