This problem did not exist with the RadControls_Prometheus_2007_3_1425. When I replaced the DLL with the latest RadControls_for_ASP.NET_AJAX_2008_1_415, then this problem showed up.
When a column is dragged into the grouping panel, and the group splitters appear, the text inside the group splitter seem to be top aligned, and it passes the top boundary of the splitter, and for the very first group splitter, the text is clipped from the top by the grid header.
Definition of the grid:
<telerik:RadGrid ID="RadGrid1" runat="server"
PageSize="50" AllowSorting="True" Skin="Office2007" AllowPaging="True"
ShowGroupPanel="True" GridLines="None" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"
>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView CommandItemDisplay="Bottom" TableLayout="Fixed" >
<ExpandCollapseColumn
Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<CommandItemTemplate>
<asp:Button ID="btnExcel" Width="150px" Text="Export Excel" OnClick="btnExcel_Click"
runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />
<asp:Button ID="btnCSV" Width="150px" Text="Export CSV" OnClick="btnCSV_Click"
runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />
<%-- <asp:Button ID="btnPDF" Width="150px" Text="Export To PDF" OnClick="btnPDF_Click"
runat="server" />--%>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn AllowFiltering="False" HeaderText="TemplateColumn" UniqueName="TemplateColumn">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CommandName="MyCustomAction" Text="Do action"
OnClick="Button1_Click" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<GroupHeaderItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" VerticalAlign="Bottom" Wrap="True" />
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
</MasterTableView>
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
AllowColumnsReorder="True" >
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Resizing AllowColumnResize = "True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />
</ClientSettings>
<GroupHeaderItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" VerticalAlign="Bottom" Wrap="True" />
</telerik:RadGrid>
In order to resolve this problem I did the following:
In RadGrid1_ItemDataBound and RadGrid1_ItemCreated events:
if (e.Item is GridGroupHeaderItem)
{
GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;
item.DataCell.VerticalAlign = VerticalAlign.Bottom;
item.VerticalAlign = VerticalAlign.Bottom;
}
In column created event:
if (e.Column is GridGroupSplitterColumn)
{
GridGroupSplitterColumn gr = (GridGroupSplitterColumn)e.Column;
gr.HeaderStyle.VerticalAlign = VerticalAlign.Bottom;
gr.HeaderStyle.Wrap = true;
gr.ItemStyle.VerticalAlign = VerticalAlign.Bottom;
gr.ItemStyle.Wrap = true;
}
None of the above approaches solved the problem. If I change the height of the splitter, it works, but I cant seem to do anything with the text.
I cannot attach an image, but I would if I could to illustrate this problem.
Any help would be appreciated.
Thanks,
Tal