public partial class frmMain : RadForm
{
private Theme currentTheme;
private const string baseColorParamName = "BaseColor";
public frmMain()
{
InitializeComponent();
}
private void radButton1_Click(object sender, EventArgs e)
{
currentTheme = ThemeResolutionService.GetTheme("Desert");
HslColor baseColor = HslColor.FromAhsl(0.118, 0.9, 0.9);
currentTheme.AddColorBlend(baseColorParamName,baseColor);
currentTheme.ThemeProperties[baseColorParamName] = baseColor;
}
}
The code generates no errors and the form borders sort of flicker as it happens,
the colour blending however has no effect. I assume I am missing something
simple but the code above barring the moving of some lines to a single proc,
is identical to that in the examples.
Could anyone shed some light on what I am doing incorrectly ?
DataGrid.MasterGridViewInfo.FilterExpression = "id = 7" ;
but the gird didn't filer the rows .DataGrid.MasterGridViewInfo.UpdateFiltering();
DataGrid.MasterGridViewInfo.UpdateView();
is there a way to ser the row filter menual from code.private void AddRadio(CellFormattingEventArgs gCell) |
{ |
if (gCell.CellElement.Children.Count > 0) |
return; |
RadRadioButtonElement element = new RadRadioButtonElement(); |
gCell.CellElement.Children.Add(element); |
// apply theme to the progress bar |
ApplyThemeToElement(element, "Aqua"); |
} |