or
Hello!
I am having some problems with the GridViewComboBoxColumn .
GridViewComboBoxColumn supports selectionevent? Cannot seek change event.
I am necessary, change event.
There is what kind of method?
<telerik:RadNumericUpDown Grid.Column="1" |
x:Name="inpPMax" Style="{StaticResource InputNumbers}" |
ValueFormat="Numeric" NumberFormatInfo="{Binding Path=DisplayFormat}" |
IsEnabled="{Binding Path=UserEntered}" |
Minimum="{Binding Path=Minimum}" Maximum="{Binding Path=Maximum}" |
SmallChange=".1" LargeChange="1" GotFocus="inpPMax_GotFocus" ValueChanged="inpPMax_ValueChanged"> |
<telerik:RadNumericUpDown.Value> |
<Binding Path="DisplayValue" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True"/> |
</telerik:RadNumericUpDown.Value> |
</telerik:RadNumericUpDown> |
<Style x:Key="InputNumbers" TargetType="{x:Type telerik:RadNumericUpDown}"> |
<Setter Property="Height" Value="25"/> |
<Setter Property="FontSize" Value="12"/> |
<Setter Property="Margin" Value="2"/> |
<Setter Property="HorizontalContentAlignment" Value="Right"/> |
<Style.Triggers> |
<Trigger Property="Validation.HasError" Value="true"> |
<Setter Property="ToolTip" |
Value="{Binding RelativeSource={RelativeSource Self}, |
Path=(Validation.Errors)[0].ErrorContent}"/> |
</Trigger> |
<Trigger Property="Validation.HasError" Value="false"> |
<Setter Property="ToolTip" Value=""/> |
</Trigger> |
</Style.Triggers> |
</Style> |
public NumberFormatInfo DisplayFormat |
{ |
get |
{ |
var ret = (NumberFormatInfo)CultureInfo.CurrentCulture.NumberFormat.Clone(); |
ret.NumberDecimalDigits = DecimalPlaces; |
return ret; |
} |
} |
protected virtual int DecimalPlaces { get { return 0; } } |