Group Header Text

6 posts, 0 answers
  1. bslaght
    bslaght avatar
    184 posts
    Member since:
    Jun 2006

    Posted 09 Apr 2008 Link to this post

    My Group Headers look like this:

    adType: Web Banner

    adType: Van

    adType: Map

    adType: Graphic Design

    adType: Experience Guide

    adType: Community Profile

     I would like to remove the "adType:" (fieldname) and leave the rest of the text.

    Also, how do I enable expand on click for these header rows?

    Brett
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 10 Apr 2008 Link to this post

    Hello bslaght,

    You can easily customize the group text, as shown in the following article.
    As for the other functionality, you may find it worthwhile to take a look at the following example.
    I hope this information helps.

    All the best,
    Yavor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason Lee
    Jason Lee avatar
    185 posts
    Member since:
    Oct 2004

    Posted 20 Apr 2008 Link to this post

    I probably get the same problem relate to it....

    For example:
        <telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
            OnNeedDataSource="radGrid_NeedDataSource" Skin="Vista">
            <MasterTableView>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="groupName" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="groupName" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="False" Resizable="False">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn HeaderText="group" UniqueName="groups" DataField="groupName"
                        Display="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="name" UniqueName="column1" DataField="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="thread" UniqueName="column2" DataField="threadCount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="post" UniqueName="column3" DataField="postCount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="last" UniqueName="column" DataField="lastPerson">
                    </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings>
                    <PopUpSettings ScrollBars="None"></PopUpSettings>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>

    I don't set "HeaderText" in the GridGroupByField.  However, the grid still displays "groupName: Asia" in the group headers

    Is it possible to remove "groupName" (fieldname) without any coding?

    I want my group headers look like this:
    "Asia"


    Thank you
  5. Jason Lee
    Jason Lee avatar
    185 posts
    Member since:
    Oct 2004

    Posted 21 Apr 2008 Link to this post

    Dear Sir,

    I was going to ask for a support ticket.  However,  There is no item relate to RadGrid For asp.net ajax..(I guess there is a bug in support ticket center)

    Any suggestion?
  6. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 23 Apr 2008 Link to this post

    Hello Jason,

    The behavior that you mentioned is part of the default behavior of the control. You can either set the FieldAlias to a more appropriate value, according to your requirements, like this:

    .aspx
       <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="CustomerID" FieldAlias="customFieldName" /> 
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="CustomerID"/>  
                        </GroupByFields> 
                    </telerik:GridGroupByExpression> 
                 </GroupByExpressions> 

    Or, alternatively, you can use custom code, if you would like to fieldAlias to be empty string.
    I hope these are feasible options for you.
    If you would like me to transfer this post into a support ticket, just let me know.

    All the best,
    Yavor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Levi
    Levi avatar
    134 posts
    Member since:
    Jul 2008

    Posted 07 Nov 2008 Link to this post

    I have this same problem. i wish you guys would make an easier way to do this.

    Please consider for future release :)

    THanks,
    Levi
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017