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

Format GridGroupByField

1 Answer 325 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avinash
Top achievements
Rank 1
Avinash asked on 19 Jan 2011, 11:05 PM

Hi Currently I working on Telerik grid control to fit my requirements.

I am using proper

 

<

 

GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldName="MonthName" HeaderText=" " />
            <telerik:GridGroupByField FieldName="Year" HeaderText=" " />
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="MonthName" HeaderText=" " />
            <telerik:GridGroupByField FieldName="Year" HeaderText=" " />
        </GroupByFields>
    </telerik:GridGroupByExpression>

after implementation,  group headers are showing as e.g.  :December; : 2010

I want to format this text and remove ':' and ';' and replacewith some other special characters.

Please help me out.

 

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Jan 2011, 12:02 PM
Hello Avinash,

You can change the text showing in the GroupHeader from code behind. To change the string that appears in the group header, set the DataCell.Text property of the GridGroupHeaderItem instance in ItemDataBound event.
Customizing GridGroupHeaderItem

Best wishes,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Avinash
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or