Hello I posted a question here: https://www.telerik.com/forums/gridviewcheckboxcolumn-checkbox-command#zvPzrS8xrECwPcG1wGYRTA and realized afterwards that the thread might be closed. Anyroad, I have a problem similar to the original poster. My ApprovalStatusEditCommand is not being fired. Also, as a side note, the DataMemberBinding is not necessary. Even without it the "IsChecked" bindings seem to be updating the object - even though the "IsApproved" is underlined (in Visual Studio) as "cannot resolve."
Any help resolving this would be much appreciated. Basically, I'm trying to execute a command if a checkbox (in a radgridview) is checked.
Kind regards,
Jonathan
P.S. I'm sorry if I created a duplicate post, but all my research has not really helped me work around this.
<telerik:GridViewDataColumn Header="Approved" DataMemberBinding="{Binding IsApproved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="Auto" MinWidth="75" EditTriggers="CellClick" IsFilterable="False"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <telerik:GridViewCheckBox IsChecked="{Binding IsApproved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <CheckBox IsChecked="{Binding IsApproved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Command="{Binding ApprovalStatusEditCommand, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>Hi!
When creating a diagram with too many items with AutoLayout, it seems there is a maximum width the diagram will grow to.
Which causes a weird behavior of the items being places vertically.
Is it possible to set the width of the available space for the auto layout?
I've added a screenshot demonstrating the behavior.
Thanks!
Method to reproduce
(telerik version 2018.1.220)
---
Exception thrown: 'System.InvalidCastException' in mscorlib.dll
Exception thrown: 'System.InvalidCastException' in mscorlib.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=CurrentPropertySet[Types]; DataItem='PropertySetViewModel' (HashCode=30131813); target element is 'FlagEnumEditor' (Name=''); target property is 'Value' (type 'Object') InvalidCastException:'System.InvalidCastException: 'System.String' から 'enum_flags_test.MainWindow+EnumTest+Type' への無効なキャストです。
System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
Telerik.Windows.Controls.RadPropertyGrid.<>c__DisplayClass2b.<OnPropertySetViewModelChanged>b__28(Object s, PropertyChangedEventArgs e)
System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
Telerik.Windows.Controls.Data.PropertyGrid.PropertySet.OnPropertyChanged(String fileName)
Telerik.Windows.Controls.Data.PropertyGrid.PropertySet.set_Item(String property, Object value)'
---
Is there any workaround?
Your help would be welcomed.
---
MainWindow.xaml.cs
public partial class MainWindow : Window{ public class EnumTest { [Flags] public enum Type { None = 0, First = 1 << 0, Second = 1 << 1, } public Type Types { get; set; } = Type.None; } public MainWindow() { InitializeComponent(); PropertyGrid1.Item = new EnumTest[] { new EnumTest() }; }}
MainWindow.xaml
<Window x:Class="enum_flags_test.MainWindow" xmlns:local="clr-namespace:enum_flags_test" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Grid xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <telerik:RadPropertyGrid x:Name="PropertyGrid1" PropertySetMode="Intersection"/> </Grid></Window>


Hello, how do we set the `GridViewDataColumn` to capture Tab and indent the text in the cell instead of moving to another cell?
Thank you,
Jan

Was trying to do a quick spike that changed the Background of the grid and in haste I used a named color instead of the hex value
| <telerik:GridViewDataColumn Background="Black" IsReadOnly="True" |
| DataType="{x:Null}" HeaderText="Company Name" UniqueName="CompanyName" /> |
instead of
| <telerik:GridViewDataColumn Background="#10000000" IsReadOnly="True" |
| DataType="{x:Null}" HeaderText="Company Name" UniqueName="CompanyName" /> |
and the selected row was no longer visible. Finding the hex value for Black is not difficult, so if you bump into this issue that is the workaround. It seems the issue is related to the Alpha portion of the color. The named colors have alpha set to Opaque, so you must set the alpha channel to something less than FF. I'm currently using E5 (90%) which makes a very faint highlight.


Hi.
When I open a combobox, selected item is scrolled somewhere in the bottom of dropdown area (Screenshot 1). I need to have selected item scrolled at the very top of that area (Screenshot 2). Is this possible? How can I do that?
Thank you.
Tomas

