Trying to wrap the radgrid as a custom control in an ASCX control file but I'm not having much luck.
I was able to set the datasource, and get data, but I'm trying to customize the columns now, and it doesn't recognize MasterTableView
How do I do this?
Thanks,
Simone
<%@ Page Title="" Language="vb" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="test.aspx.vb" Inherits="SMTProMockup.test" %>
<%@ Register TagPrefix="mockup" TagName="CustomRadGrid" Src="CustomRadGrid.ascx" %>
...
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<mockup:CustomRadGrid id="grdPrograms" runat="server" >
<MasterTableView DataKeyNames="ID" CommandItemDisplay="Bottom" AutoGenerateColumns="False" FilterExpression="Active = true">
<Columns>
<telerik:GridCheckBoxColumn DataField="Active" FilterControlAltText="Filter Active column"
HeaderText="Active" ItemStyle-Width="50" DefaultInsertValue="true" UniqueName="Active">
<ItemStyle Width="50px"></ItemStyle>
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" FilterControlWidth="150"
HeaderText="Name" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</mockup:CustomRadGrid>
</asp:Content>
I was able to set the datasource, and get data, but I'm trying to customize the columns now, and it doesn't recognize MasterTableView
How do I do this?
Thanks,
Simone
<%@ Page Title="" Language="vb" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="test.aspx.vb" Inherits="SMTProMockup.test" %>
<%@ Register TagPrefix="mockup" TagName="CustomRadGrid" Src="CustomRadGrid.ascx" %>
...
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<mockup:CustomRadGrid id="grdPrograms" runat="server" >
<MasterTableView DataKeyNames="ID" CommandItemDisplay="Bottom" AutoGenerateColumns="False" FilterExpression="Active = true">
<Columns>
<telerik:GridCheckBoxColumn DataField="Active" FilterControlAltText="Filter Active column"
HeaderText="Active" ItemStyle-Width="50" DefaultInsertValue="true" UniqueName="Active">
<ItemStyle Width="50px"></ItemStyle>
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" FilterControlWidth="150"
HeaderText="Name" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</mockup:CustomRadGrid>
</asp:Content>