My Scenario is I have a dropdown button as a cell template in a radGrid. where the drop down content is a color picker.
In the code I only get the handle to the radColor picker. How can I close the dropDown.
In the code I only get the handle to the radColor picker. How can I close the dropDown.
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<telerik:RadDropDownButton Background="{Binding Path=ColorBrush, Mode=TwoWay}"
Width="20" Height="15" DropDownWidth="187" CornerRadius="3"
DropDownIndicatorVisibility="Collapsed">
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadColorSelector
SelectedColor="{Binding Path=ColorBrush, Mode=TwoWay}"
SelectedColorChanged="RadColorPicker_SelectedColorChanged"/>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
private void RadColorPicker_SelectedColorChanged(object sender, EventArgs e)
{
Control ctrl = (sender as RadColorSelector).Parent as Control;
}