BoldDeskBoldDesk is now live on Product Hunt with a special offer: 50% off all plans. Let's grow together! Support us.
<syncfusion:GridColumnDescriptor MappingName="REASON" Width="125" Appearance-RecordFieldCell-WrapText="false"> <Appearance> <AnyCell WrapText="False"></AnyCell> </Appearance>
AutoFit="false" TableLayoutMode="Fixed"
These settings produce the desired result in Internet Explorer, but not in FireFox or Chrome (see the attachment for screen-shots)
I am looking for a way to duplicate the Internet Explorer results across any browser. Specifically I want fixed column widths, no text wrapping, single height rows, and long text (that doesn't fit it's column width) to be nicely truncated.
Hi Dale,
We suggest you to set CSS overflow as hidden for AnyRecord
,Alternate Record and SelectedRowCells to resolve your issue. Please refer to
the code snippet below.
[Default.aspx]
<asp:Content ID="Content1"
ContentPlaceHolderID="MainContent"
runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="GridPanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="GridTable">
<tr>
<td>
<style type="text/css">
.GridOffice2007BlueAnyRecord, .GridOffice2007BlueAlternateRecord, .GridOffice2007BlueSelectedRowCells, .GridOffice2007BlueSelectedUfRowCells
{
overflow: hidden !important;
}
</style>
<syncfusion:GridGroupingControl
ID="GridGroupingControl1"
runat="server"
AutoFit="false"
TableLayoutMode="Fixed"
AutoFormat="Office
2007 Blue" BorderCollapse="Separate"
DataSourceCachingMode="ViewState"
DragSelectionBackColor="Yellow"
EnableCallbacks="False"
ShowGroupDropArea="false"
HotTrackButtons="False">
<TopLevelGroupOptions ShowCaption="false" />
<TableDescriptor
AllowNew="False"
AllowFilter="False"
AllowEdit="false">
<Columns>
<syncfusion:GridColumnDescriptor
MappingName="CustomerID"
HeaderText="Customer
ID">
</syncfusion:GridColumnDescriptor>
<syncfusion:GridColumnDescriptor
MappingName="CompanyName"
HeaderText="Company
Name">
<Appearance>
<AnyCell WrapText="false"
/>
</Appearance>
</syncfusion:GridColumnDescriptor>
<syncfusion:GridColumnDescriptor
MappingName="City">
</syncfusion:GridColumnDescriptor>
<syncfusion:GridColumnDescriptor
MappingName="Country">
</syncfusion:GridColumnDescriptor>
</Columns>
</TableDescriptor>
</syncfusion:GridGroupingControl>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
</Triggers>
</asp:UpdatePanel>
</asp:Content>
For your convenience , we have prepared a simple
sample to demonstrate this and the same can be downloaded from the below link.
Sample:
Please let us know if you have any concerns.
Regards,
HARIHARAN JV
Hi Dale,
Sorry for the inconvenience caused.
Since the WrapText property is used for
wrapping the text to the next line of the cell if the content exceed the cell size.
Your requirement is to hide the cell content if it exceed the cell content so
that we have given an workaround for you to customize the css for the rowcells
which has been given in the last update. You should customize the css based on
the skins applied to the grid.
Thanks for using Syncfusion products.
Please let us know if you have any concerns.
Regards,
HARIHARAN JV