<%
@ Page Language="C#" MasterPageFile="~/Masters/Site.Master" AutoEventWireup="true" CodeBehind="Forms.aspx.cs" Inherits="MIDI_Internal.Lookups.NSNs.Forms" Title="MIDI - Manage Forms" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphPageTitle" runat="server"> Manage Forms
</asp:Content>
<
asp:Content ID="Content3" ContentPlaceHolderID="cphMainBody" runat="server"> <asp:ObjectDataSource ID="ObjectDataSourceLookup" runat="server" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetDT" UpdateMethod="Update" TypeName="MIDI_Internal.BLL_Form" >
<DeleteParameters>
<asp:Parameter Name="FormID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="FormID" Type="Int32" />
<asp:Parameter Name="Form" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:Parameter Name="FormID" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="Form" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
<asp:DropDownList ID="ddRadGridStyles" runat="server" AutoPostBack="True" onselectedindexchanged="ddRadGridStyles_SelectedIndexChanged"> </asp:DropDownList>
<telerik:RadGrid ID="RadGridLookup" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None" Skin="Vista" EnableAJAX="True" width="60%" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSourceLookup" OnItemDeleted="RadGridLookup_ItemDeleted" OnDeleteCommand="RadGridLookup_Delete" OnInit="RadGridLookup_Init" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnColumnCreated="RadGridLookup_ColumnCreated" >
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView AllowMultiColumnSorting="True" PageSize="15" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" DataKeyNames="FormID" DataSourceID="ObjectDataSourceLookup">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="~\RadControls\Skins\Vista\Grid\Update.gif" EditImageUrl="~\RadControls\Skins\Vista\Grid\Edit.gif" InsertImageUrl="~\RadControls\Skins\Vista\Grid\AddRecord.gif" CancelImageUrl="~\RadControls\Skins\Vista\Grid\Cancel.gif" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField="FormId" DataType="System.Int32" HeaderText="ID" ReadOnly="True" SortExpression="FormId" UniqueName="FormId" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Form" HeaderText="Name" SortExpression="Form" UniqueName="Form" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"> </telerik:GridBoundColumn>
<telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this record?" ButtonType="ImageButton" ImageUrl="~\RadControls\Skins\Vista\Grid\Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
<HeaderStyle Width="20px" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
</
asp:Content>