UI controls for ASP.NET AJAX, MVC, WPF,Silverlight, Windows 8 and Windows Phone
Cross-platform Mobile Development Toolwith cloud-based architecture
Everything you need to build sites andmobile apps with JavaScript and HTML5
One easy tool for Functional, Performance,Load and Mobile software testing
Everything for your online business - contentmanagement, ecommerce, emarketing
Simple and intuitive project managementand collaboration software
Add custom column in the Grid
In the Q2 2009 release we introduced support for custom columns in the embedded RadGrid. This example demonstrates the steps that need to be done in order to add two custom columns into the Grid.
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.Web.Examples.FileExplorer.CustomGridColumns.DefaultCS" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>ASP.NET FileExplorer Demo - Add custom columns</title> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" /> <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" /> <fieldset style="width: 250px; font-size: 12px;"> <legend>Custom columns </legend> <div> <asp:CheckBox ID="AddDateColumn" runat="server" Text="Add <em>Creation Date</em> column" AutoPostBack="true" Checked="true"></asp:CheckBox> </div> <div> <asp:CheckBox ID="AddOwnerColumn" runat="server" Text="Add <em>Owner Name</em> column" AutoPostBack="true" Checked="true"></asp:CheckBox> </div> </fieldset> <br /> <div style="float: left"> <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="734px" Height="400px" EnableOpenFile="true" OnExplorerPopulated="RadFileExplorer1_ExplorerPopulated"> <Configuration ViewPaths="~/FileExplorer/ExplorerSource/Images/" DeletePaths="~/FileExplorer/ExplorerSource/Images/" UploadPaths="~/FileExplorer/ExplorerSource/Images/"></Configuration> </telerik:RadFileExplorer> </div> </form> </body> </html>