What is the scope of setting RadGridLocalizationProvider please?
When setting it, it doesn't seem to be assigned to anything eg a particular window. So I'm a bit confused whether it should be set once on startup or if it should be set per form.
On the surface the function "CurrentProvider" appears to be setting.a static variable somewhere, so does the function add the new instance to a list? or does it override a single instance and need resetting after a child form is disposed?
Sorry if this seems like a dumb question.
public class GeneralRadGridLocalizationProvider : RadGridLocalizationProvider
{
public override string GetLocalizedString(string id)
{
switch (id)
{
case RadGridStringId.ConditionalFormattingPleaseSetValidCellValue: return GuiResources.Please_set_a_valid_cell_value;
//foo bar the remaining ids
case RadGridStringId.ExpressionFormNotButton: return string.Empty; //if empty, default button image is used
}
return string.Empty;
}
}// class
public function FooBar()
{
RadGridLocalizationProvider.CurrentProvider = new GeneralRadGridLocalizationProvider();
}