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

Group Header shows more text than I want when paging is involved.

2 Answers 255 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan Harvey
Top achievements
Rank 2
Dan Harvey asked on 23 Mar 2012, 03:47 PM
Hello,

I have added grouping to my grid and everything works great until I have multiple pages.  When i have multiple pages I see something like this: "My Original Group Header" and then this extra stuff: (Showing 10 of 186 items. Group continues on the next page.)

How do I remove the extra stuff?

I have attached a screen shot of what I'm getting and what I want.

Also, can I right align this group header test also? 

Thanks!

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Mar 2012, 09:09 AM
Hello Dan,

Try setting GroupContinuesFormatString as shown below to remove the group continues format string. In order to right align the text, try setting GroupHeaderItemStyle.
aspx:
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" DataSourceID="SqlDataSource1" ShowFooter="True" runat="server" AllowPaging="true" PageSize="7"
   GroupingSettings-RetainGroupFootersVisibility="true" GroupingSettings-GroupContinuesFormatString="" >
    <MasterTableView ShowGroupFooter="true">
       <GroupHeaderItemStyle  CssClass="align" />
</MasterTableView>
</telerik:RadGrid>
CSS:
.align
 {
  text-align:right !important;
 }

Thanks,
Shinu.
0
Dan Harvey
Top achievements
Rank 2
answered on 26 Mar 2012, 01:23 PM
Thank you!  I would of never found that property buried in the settings.
Tags
Grid
Asked by
Dan Harvey
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Dan Harvey
Top achievements
Rank 2
Share this question
or