This is a migrated thread and some comments may be shown as answers.

AutoGenericColumns True, Filter control wrapping

2 Answers 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 07 Jun 2014, 12:01 AM
The Filter row is word wrapping.  Since I am using AutoGenerateColumns, why doesn't it handle this automatically?  I tried setting the Filter and EditForms Filter styles wrap to False, but it didn't help.

I have attached a screen shot.

Here is my code:
<telerik:RadGrid ID="dgData" runat="server" AllowFilteringByColumn="true" AllowSorting="True" AutoGenerateColumns="True" Skin="Web20" PageSize="500" GridLines="None" Width="945px" AllowPaging="True" TabIndex="-1" EnableEmbeddedSkins="true" OnBiffExporting="RadGrid_BiffExporting" Visible="false" HeaderStyle-Wrap="false">
    <PagerStyle Position="Bottom" Mode="NumericPages" PageButtonCount="10" AlwaysVisible="true" />
    <ClientSettings>
        <Scrolling AllowScroll="True" ScrollHeight="350px" UseStaticHeaders="true"></Scrolling>
        <Resizing ResizeGridOnColumnResize="True" ClipCellContentOnResize="False" />
    </ClientSettings>
    <MasterTableView AllowMultiColumnSorting="True" EnableNoRecordsTemplate="False" GridLines="Vertical" DataKeyNames="ID">
    </MasterTableView>
</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Jun 2014, 06:51 AM
Hi Peter,

Please try the following CSS class:

CSS:
<style type="text/css">
  div.RadGrid .rgFilterRow td
  {
      padding-right: 20px;
  }
</style>

Thanks,
Princy
0
Peter
Top achievements
Rank 1
answered on 09 Jun 2014, 12:22 PM
Thanks this worked better:

.rgFilterRow td
{
    padding-right: 50px !important;
    white-space: nowrap !important;
}
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Peter
Top achievements
Rank 1
Share this question
or