<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<%
@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title></title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:radcombobox ID="RadComboBox1" runat="server" Visible="false"
onselectedindexchanged="RadComboBox1_SelectedIndexChanged">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:radcombobox>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</telerik:RadAjaxPanel>
</div>
</form>
</
body>
</
html>
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;
public
partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RadComboBox1.Items.Add(
new RadComboBoxItem("testing", "1"));
}
protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
RadComboBox1.Visible = !RadComboBox1.Visible;
}
}
I’m evaluating Telerik for my company and here is what I’m trying to accomplish. If you have any suggestions please let me know.
I’ve got an org chart hierarchy of divisions, departments within divisions, department heads, and then employees under department heads. Each level should be expandable / collapsible and each level has about 10 financial columns associated to it and the columns should line up and total. The financial columns at the department head and employee level are editable.
Option A) I’ve tried this with a self referencing hierarchy grid but the columns do not line up. The exact problem with the hierarchy grid method is discussed in this forum.
http://www.telerik.com/community/forums/thread/b311D-hatdg.aspx
Option B) I’ve also tried this with the grid grouping. The overall grid hierarchy looks good but I don’t know how to total within the aligned columns at the parent levels. It seems I can only format a line of text on the row (not each column).
Option C) I’m now looking into drawing the entire grid myself including the expandable column and hiding and displaying rows with client javascript functions, but I’m hesitant with this approach.
Anyway, if you have any suggestions please let me know.
Todd