or
<telerik:RadGrid ID="rgExport" runat="server" Skin="WebBlue" AllowPaging="true" PageSize="20"></telerik:RadGrid>All tips/advices for a solution (code) are highly appreciated. I will load data in step 2 and 3 with sql queries. Links to demos and examples are also highly appreciated.
I would prefer to trigger an event when click the column value/item and have the instructions (=code) for action in code behind file. I will also have the column value/item as a link button because in some cases I want two different columns in radgrid that trigger different actions.
Thx in advance!
<%@ Register Src="PropertyContainer.ascx" TagName="PropertyContainer" TagPrefix="uc1" %> <radG:RadGrid ID="employees" OnNeedDataSource="EmployeesGrid_NeedDataSource" runat="server" AutoGenerateColumns="false"> <Columns> <radG:GridTemplateColumn> <ItemTemplate> <uc1:PropertyContainer ID="PropertyContainer" runat="server" /> </ItemTemplate> </radG:GridTemplateColumn> </Columns>protected void Page_Load(object sender, EventArgs e) { }
public void EmployeesGrid_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e) { foreach (Employee emp in Employees) { PropertyContainer.SetProperties(emp.Properties); } )
