I have the following grid and column editor declared:
The grid works as expected EXCEPT when it comes to rendering the column editor for the Quantity field. See the attached screenshot. The Quantity field text box is sized way beyond what the column width is and I cannot figure out a way to get it to size appropriately. Whether I specify a ColumnEditorID or not, it displays this way. This is similar to a previous post when trying to customize masked text fields and that was acknowledged as bug on Telerik's end.
Is this the same issue or am I doing something incorrectly? I can't imagine that no one else has encountered this issue since I've been encountering it without doing anything out of the ordinary in multiple projects. I've even gone so far as to remove ALL css to make sure something there wasn't causing it but it displays the same way.
<telerik:RadGrid ID="grdItems" runat="server" AllowAutomaticDeletes="True" AllowSorting="True" PageSize="12" AutoGenerateColumns="False" OnNeedDataSource="grdItems_NeedDataSource" OnItemCommand="grdItems_ItemCommand" OnPreRender="grdItems_PreRender" OnUpdateCommand="grdItems_UpdateCommand" Width="456px" OnDeleteCommand="grdItems_DeleteCommand" OnEditCommand="grdItems_EditCommand" OnItemDataBound="grdItems_ItemDataBound" ShowStatusBar="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnItemCreated="grdItems_ItemCreated" Skin="Metro" BorderStyle="None" CellSpacing="0" GridLines="None" ForeColor="White" BackColor="Transparent" ShowFooter="True" AllowMultiRowEdit="True"> <ValidationSettings ValidationGroup="ItemsGrid" /> <ClientSettings AllowKeyboardNavigation="True"> <Selecting AllowRowSelect="True" /> <KeyboardNavigationSettings AllowSubmitOnEnter="True" AllowActiveRowCycle="True" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" /> <ClientEvents OnKeyPress="OnKeyPress" OnRowSelected="RowSelected" OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" OnCommand="GridCommand" /> <Resizing ShowRowIndicatorColumn="False" /> </ClientSettings> <AlternatingItemStyle BackColor="LightGray" BorderStyle="None" ForeColor="Black" /> <EditItemStyle BackColor="Gainsboro" BorderStyle="None" /> <FooterStyle BorderStyle="None" /> <HeaderStyle BorderStyle="None" Height="48px" HorizontalAlign="Left" VerticalAlign="Middle" /> <ItemStyle BackColor="White" BorderStyle="None" ForeColor="Black" /> <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle> <SelectedItemStyle BorderStyle="None" /> <FilterMenu EnableImageSprites="False" /> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" /> <MasterTableView NoMasterRecordsText="No items to display." EditMode="InPlace" CommandItemDisplay="None" BorderStyle="None" BackColor="Transparent" ShowFooter="False"> <HeaderStyle BorderStyle="None" Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="48px" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" /> <CommandItemStyle CssClass="rgCommandRow" /> <FooterStyle BorderStyle="None" CssClass="grid-footer" /> <CommandItemTemplate> <div> <asp:LinkButton ID="btnRemoveSelected" runat="server" CommandName="RemoveSelected"> <img style="border:0px;vertical-align:middle;" alt="Remove Selected Items" src="Images/GradientCancel_32x32.png" /> Remove Selected Items</asp:LinkButton> </div> </CommandItemTemplate> <CommandItemSettings ExportToPdfText="Export to PDF" ShowRefreshButton="False" AddNewRecordText="Add Item"> </CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <EditFormSettings EditFormType="Template"> <EditColumn FilterControlAltText="Filter EditCommandColumn column" CancelImageUrl="Cancel.gif" InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" Visible="true" Display="true"> </EditColumn> </EditFormSettings> <ItemStyle BackColor="White" BorderStyle="None" ForeColor="Black" /> <AlternatingItemStyle BackColor="LightGray" BorderStyle="None" ForeColor="Black" /> <EditItemStyle BackColor="Gainsboro" BorderStyle="None" /> <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle> <Columns> <telerik:GridCheckBoxColumn ConvertEmptyStringToNull="False" FilterControlAltText="Filter checked column" SortExpression="Checked" UniqueName="Checked"> <HeaderStyle Wrap="False" HorizontalAlign="Left" Width="32px" CssClass="grid-header grid-header-first" /> <ItemStyle HorizontalAlign="Center" Width="100%" VerticalAlign="Top" /> </telerik:GridCheckBoxColumn> <telerik:GridNumericColumn DataField="Quantity" DataType="System.Int16" DecimalDigits="0" DefaultInsertValue="1" ColumnEditorID="txtGridEditor_Quantity" FilterControlAltText="Filter Quantity column" HeaderText="Quantity" ShowSortIcon="False" SortExpression="Quantity" UniqueName="Quantity"> <HeaderStyle CssClass="grid-header" HorizontalAlign="Left" Width="80px" Wrap="False" /> <ItemStyle HorizontalAlign="Center" Width="100%" VerticalAlign="Top" /> </telerik:GridNumericColumn> <telerik:GridBoundColumn DataField="Item" HeaderText="Item" UniqueName="Item" ConvertEmptyStringToNull="False" EmptyDataText="" SortExpression="Item" ShowSortIcon="False" ReadOnly="True"> <HeaderStyle Wrap="False" HorizontalAlign="Left" Width="180px" CssClass="grid-header" /> <ItemStyle HorizontalAlign="Left" Width="100%" VerticalAlign="Top" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn ConvertEmptyStringToNull="False" DataField="Category" EmptyDataText="" FilterControlAltText="Filter Category column" HeaderText="Category" SortExpression="Category" UniqueName="Category" ReadOnly="True"> <HeaderStyle CssClass="grid-header" Width="80px" /> <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="100%" /> </telerik:GridBoundColumn> <telerik:GridNumericColumn dataFormatString="{0:$###,##0.00}" DataField="Price" DataType="System.Decimal" NumericType="Currency" HeaderText="Price" SortExpression="Price" UniqueName="Price" Aggregate="Sum" FooterAggregateFormatString="{0:C}" ReadOnly="True"> <HeaderStyle CssClass="grid-header" Width="60px" /> <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="100%" /> </telerik:GridNumericColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" FilterControlAltText="Filter DeleteColumn column" ImageUrl="Images/305_Close_16x16_72.png" Text="" UniqueName="DeleteColumn" Resizable="false" ConfirmText="Remove this item?" ConfirmDialogType="RadWindow" ConfirmTitle="Remove" ShowInEditForm="True"> <HeaderStyle Wrap="False" HorizontalAlign="Left" Width="24px" CssClass="grid-header grid-header-last"> </HeaderStyle> <ItemStyle Width="100%" HorizontalAlign="Right" VerticalAlign="Top" /> </telerik:GridButtonColumn> </Columns> </MasterTableView></telerik:RadGrid><telerik:GridTextBoxColumnEditor ID="txtGridEditor_Quantity" runat="server" TextBoxStyle-Width="98%" />The grid works as expected EXCEPT when it comes to rendering the column editor for the Quantity field. See the attached screenshot. The Quantity field text box is sized way beyond what the column width is and I cannot figure out a way to get it to size appropriately. Whether I specify a ColumnEditorID or not, it displays this way. This is similar to a previous post when trying to customize masked text fields and that was acknowledged as bug on Telerik's end.
Is this the same issue or am I doing something incorrectly? I can't imagine that no one else has encountered this issue since I've been encountering it without doing anything out of the ordinary in multiple projects. I've even gone so far as to remove ALL css to make sure something there wasn't causing it but it displays the same way.
