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

changethe text from a GridGroupPanel in a RadgridView

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Diego Velandia
Top achievements
Rank 1
Diego Velandia asked on 03 Dec 2009, 04:23 PM

Hello, I'm using RadControls for Winforms Q3 2009 to build an Winforms application. I have a RadgridView in there. I want to change the text "Drag a column here to group by this column".

I tried to do this, through the option edit UI elements, it changes the text for a moment, but when I execute the application the text doesn't change

 

thanks for the help

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 04 Dec 2009, 08:59 AM
Hi Diego Velandia,

To change the default text in RadGridView, you need to create a custom RadGridLocalizationProvider:

public partial class GridForm : Form
{
    public GridForm()
    {
        InitializeComponent();
 
        RadGridLocalizationProvider.CurrentProvider = new GridViewLocalization();
 
        this.radGridView1.DataSource = DataTableDumper.GenerateEmployees();
    }
}
 
public class GridViewLocalization : RadGridLocalizationProvider
{
    public override string GetLocalizedString(string id)
    {
        if (id == RadGridStringId.GroupingPanelDefaultMessage)
            return "Hello World";
        else
            return base.GetLocalizedString(id);
    }
}

You can find more information about the localization in RadControls in this article.

Regards,
Svett
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Diego Velandia
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or