In the ControlDefault theme, editor cell text is misaligned while editing a cell.
Hi Dan,
Thank you for reporting this. To workaround this behavior, we will need to modify the theme programmatically. The following code demonstrates how we can do that and remove the additional settings that offset the cell editor text.
public Form1()
{
this.ModifyTheme();
InitializeComponent();
this.radGridView1.DataSource = CreateSampleDataTable();
}
private void ModifyTheme()
{
Theme controlDefaultTheme = ThemeRepository.FindTheme("ControlDefault");
StyleGroup group = controlDefaultTheme.FindStyleGroup("Telerik.WinControls.UI.RadGridView");
var groupsToRemove = group.PropertySettingGroups.Where(g =>
g.Selector.Value == "RadPromptInputElement" ||
g.Selector.Value == "RadTextBoxElement" ||
g.Selector.Value == "PromptInputSpeechToTextButton").ToList();
while (groupsToRemove.Count > 0)
{
group.PropertySettingGroups.Remove(groupsToRemove[0]);
groupsToRemove.RemoveAt(0);
}
}Regards,
Dinko | Tech Support Engineer
Progress Telerik