or
.rfdButton a.rfdSkinnedButton, .rfdButton a.rfdSkinnedButton * { height: 21px !important; line-height: 21px !important; } .rfdButton input[type="button"].rfdDecorated, .rfdButton input[type="reset"].rfdDecorated, .rfdButton input[type="submit"].rfdDecorated, .rfdButton .rfdSkinnedButton button, .rfdButton a.rfdInputDisabled.rfdSkinnedButton:hover * { background-position: left -21px !important; height: 21px !important; line-height: 21px !important; } .rfdButton a.rfdSkinnedButton * { _background-position: left -21px !important; } /* IE6 fixes */.rfdButton a.rfdInputDisabled:hover * { _background-position: left -21px !important; } .rfdButton a.rfdSkinnedButton:hover { background-position: right -42px !important; } .rfdButton a.rfdSkinnedButton:hover * { background-position: left -63px !important; } .rfdButton a.rfdClickedButton, .rfdButton a.rfdClickedButton:hover { background-position: right -84px !important; } .rfdButton a.rfdSkinnedButton.rfdClickedButton * { background-position: left -105px !important; } /* IE7 hovers fix */* + html.rfdButton a.rfdSkinnedButton:hover *, * + html .rfdButton a.rfdSkinnedButton:hover * { background-position: left -63px !important; }| <%@ Page Title="" Language="VB" MasterPageFile="~/Brunswick.master" AutoEventWireup="false" CodeFile="FastItemEntry.aspx.vb" Inherits="FastItemEntry" %> |
| <asp:Content ID="cntHead" ContentPlaceHolderID="cpHead" Runat="Server"> |
| </asp:Content> |
| <asp:Content ID="cntBody" ContentPlaceHolderID="cpHolder" Runat="Server"> |
| <telerik:RadScriptManager ID="rsManager" Runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="raManager" runat="server"> |
| </telerik:RadAjaxManager> |
| <table border="0" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td> |
| <telerik:RadGrid ID="rgAddItems" AutoGenerateColumns="False" GridLines="Both" runat="server"> |
| <MasterTableView DataKeyNames="ItemID" CommandItemDisplay="Bottom" NoDetailRecordsText="begin entering data" runat="server"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ItemID" Visible="false" /> |
| <telerik:GridBoundColumn UniqueName="PartNumber" DataField="PartNumber" HeaderText="Part Number" /> |
| <telerik:GridBoundColumn UniqueName="ItemDescription" DataField="ItemDescription" HeaderText="Description" /> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:Label ID="lblQty" runat="server" /> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadNumericTextBox ID="rntbQty" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="9" runat="server" > |
| </telerik:RadNumericTextBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| </asp:Content> |
| Imports System.Data |
| Partial Class FastItemEntry |
| Inherits System.Web.UI.Page |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| If Page.IsPostBack Then |
| Else |
| rgAddItems.MasterTableView.IsItemInserted = True |
| rgAddItems.Rebind() |
| End If |
| End Sub |
| Protected Sub rgAddItems_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgAddItems.ItemCommand |
| End Sub |
| Protected Sub rgAddItems_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgAddItems.NeedDataSource |
| Dim dt As DataTable = Nothing |
| rgAddItems.DataSource = dt |
| End Sub |
| End Class |
| if (this.Label.Length > 0) |
| { |
| if (this.Width == Unit.Empty) |
| { |
| str = str + string.Format("width:160px", new object[0]); |
| } |
| else if (this.Width.Type != UnitType.Percentage) |
| { |
| str = str + string.Format("width:{0}{1}", this.Width.Value, "px"); |
| } |
| str = str + "display:none"; |
| } |
| <telerik:RadGrid ID="Rad_grd1" runat="server" AutoGenerateColumns="false" GridLines="None" BorderWidth="0" AllowSorting="true" Width="100%" PageSize="20" AllowPaging="true" PagerStyle-Mode="NextPrev" PagerStyle-AlwaysVisible="true" PagerStyle-HorizontalAlign="Right" > |
| <ClientSettings> |
| <Resizing AllowRowResize ="true" /> |
| <Selecting AllowRowSelect="true" /> |
| <Scrolling AllowScroll ="true" UseStaticHeaders ="true" SaveScrollPosition="true"/> |
| <ClientEvents OnScroll="HandleScrolling" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="ID, ParameterCollectionTypeId, Status" ClientDataKeyNames="ID" TableLayout="Fixed" CommandItemDisplay="Top" EditMode="EditForms" > |
| <RowIndicatorColumn Visible="True"> |
| </RowIndicatorColumn> |
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="#"> |
| <ItemTemplate> |
| <asp:Label ID="numberLabel" runat="server" Width="30px" /> |
| </ItemTemplate> |
| <HeaderStyle Width="30px" /> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Name" UniqueName="Name"> |
| <ItemTemplate> |
| <asp:LinkButton ID="lnkbtn_Edit" runat="server" CommandName="Edit" Text='<%#Eval("Name") %>'></asp:LinkButton> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <table width="100%"> |
| <tr> |
| <td colspan="2"> |
| <asp:ValidationSummary ID="vs_Summary1" CssClass="" runat="server" ValidationGroup="EditValidation" ShowSummary="true" |
| ForeColor="Red" DisplayMode="BulletList" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lbl_etHeading" runat="server" Text="Add New Parameter"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td width="15%"> |
| <asp:Label ID="lbl_etName" runat="server" Text="ParameterName :"></asp:Label> |
| </td> |
| <td width="85%"> |
| <telerik:RadTextBox ID="rad_txt_etName" Width="200px" runat="server" Text='<%#Bind("Name") %>' SelectionOnFocus="CaretToEnd"></telerik:RadTextBox> |
| <asp:RequiredFieldValidator ID="rfv_etName" Display="Dynamic" ValidationGroup="EditValidation" |
| SetFocusOnError="true" runat="server" ControlToValidate="rad_txt_etName" |
| ErrorMessage="Name is Mandatory!!!" Text="*" ForeColor="Red"></asp:RequiredFieldValidator> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="lnkbtn_AddNew" runat="server" CommandName="InitInsert" Text="Add New Name"></asp:LinkButton> |
| </CommandItemTemplate> |
| </MasterTableView> |
| </telerik:RadGrid> |