<telerik:RadOrgChart ID="RadOrgChart1" runat="server" EnableCollapsing="true" LoadOnDemand="NodesAndGroups" Skin="Office2010Blue">
</telerik:RadOrgChart>
protected void Page_Load(object sender, EventArgs e)
{
BindToDataSet(this.RadOrgChart1);
}
private static void BindToDataSet(RadOrgChart orgChart)
{
string dbConnectionString = ConfigurationManager.ConnectionStrings["mambophilprod"].ConnectionString;
MySqlDataAdapter adapter = new MySqlDataAdapter("SELECT Id, ParentId, CurrentPosition From mambophil_flat_tree",
dbConnectionString);
DataSet links = new DataSet();
adapter.Fill(links);
orgChart.DataTextField = "CurrentPosition";
orgChart.DataFieldID = "Id";
orgChart.DataFieldParentID = "ParentID";
orgChart.DataSource = links;
orgChart.DataBind();
}
This is what I would like to do.
- I want to show the first few levels (say 10)
- When the user clicks on one of the last levels, the system fetches the next 10 levels.
Is this possible? Appreciate your help.
Sree