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

[Solved] Hide pipe(|) symbol in new radgrid header

2 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 12 Feb 2010, 10:32 AM
Hello Friends

I had hide refresh text and its icon from the code behind its workging fine.

I am also showing  the exporttoexcel,exporttopdf icon right side of the grid in header its also wok fine.

Now how i will hide pipe(|) symbol from the grid header?

Thansk & Regards
Jignesh Patel

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 12 Feb 2010, 11:16 AM
Hello Jignesh,

Try the following code:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridCommandItem)
    {
        TableCell parentCell = e.Item.FindControl("ExportToPdfButton").Parent as TableCell;
        foreach (Control ctrl in parentCell.Controls)
        {
            if (ctrl is LiteralControl)
            {
                LiteralControl literal = ctrl as LiteralControl;
                literal.Text = literal.Text.Replace("|", " ");
            }
        }
    }
}

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jignesh
Top achievements
Rank 1
answered on 12 Feb 2010, 01:00 PM
Thanks Daniel


Its working fine.

Thank u very much...


Thanks & Regards
Jignesh Patel

Tags
Grid
Asked by
Jignesh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Jignesh
Top achievements
Rank 1
Share this question
or