or
this.Enter += new EventHandler(BaseButton_Enter);this.Leave += new EventHandler(BaseButton_Leave);void BaseButton_Enter(object sender, EventArgs e) { this.ButtonElement.ButtonFillElement.BackColor = Color.Blue; this.ButtonElement.ForeColor = Color.White; this.ButtonElement.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid; }void BaseButton_Leave(object sender, EventArgs e) { this.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local); this.ButtonElement.ResetValue(LightVisualElement.ForeColorProperty, Telerik.WinControls.ValueResetFlags.Local); this.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.GradientStyleProperty, Telerik.WinControls.ValueResetFlags.Local); }I have a RadDropDownList in a gridview, the Value Changed Event is raised only when I increase/ Decrease the value with the arrows and not when key pressed.
I partially resolved the problem by adding the following code to the Value Changed Event:
GridSpinEditor gseditor = sender as GridSpinEditor;
if (gseditor != null)
{
this.CurrentCell.Value = gseditor.Value;
}
When I press the backspace key the event is raised except if it the last digit.
Any solution?
Thanks,
Dror
foreach (GridViewRowInfo row in radGV_.Rows) { row.Cells["BName"].Value = txtBName.Text; }
| this.radDock1.MainDocumentContainer.BackColor = Color.Transparent; |
| Telerik.WinControls.RadElement el = this.radDock1.MainDocumentContainer.RootElement.Children[0].Children[0]; |
| (el as Telerik.WinControls.Primitives.FillPrimitive).BackColor = this.BackColor; |