I got what I thought was a really simple example to test the drilldown capability of the orgchart, but I'm getting an errror:
Sys.WebForms.PageRequestManagerServerErorrException :Object reference not set to an instance of an object.
I get this when I click on the little icon next to someone's name to drill down.
The page comes up fine and displays the chart, so I know there's nothing wrong with the query.
Here's the bare bones code:
Thanks ... Ed
<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="TestOrgChart.aspx.cs" Inherits="SysAdmin_TestOrgChart" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><asp:Content ID="Content1" ContentPlaceHolderID="cntHead" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="cntPageBody" Runat="Server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" > <telerik:RadOrgChart runat="server" ID="org1" EnableDrillDown="true"> </telerik:RadOrgChart></telerik:RadAjaxPanel>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;using MyDB;public partial class SysAdmin_TestOrgChart : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LoadChart(); } } private void LoadChart() { MyDataContext db = new MyDataContext(); var qry = from a in db.STAFFs select new { a.STAFF_SEQ, a.PARENT_STAFF_SEQ, FullName = a.LAST_NAME + ", " + a.FIRST_NAME }; org1.DataSource = qry.ToDataTable(); org1.DataFieldID = "STAFF_SEQ"; org1.DataFieldParentID = "PARENT_STAFF_SEQ"; org1.DataTextField = "FullName"; org1.DataBind(); org1.DisableDefaultImage = true; }} </asp:Content>