Prism2.2: Two modules and each module represent a pane, and these two RadPane at a panelGroup in a Region and both panes have a RadGridView with different ItemsSource data binding. It works once and then data disappears when you click on each pane 2nd time. It looks like ItemsSource binding from GridView and button's command binding of each pane are looking for the same property in other module's ViewModel. It looks like a bug to me.
1. System.Windows.Data Error: 40 : BindingExpression path error: 'Pane4Source' property not found on 'object' ''Pane2ViewModel' (HashCode=63892678)'. BindingExpression:Path=Pane4Source; DataItem='Pane2ViewModel' (HashCode=63892678); target element is 'RadGridView' (Name='RadGridViewPane4'); target property is 'ItemsSource' (type 'Object') .
2. System.Windows.Data Error: 40 : BindingExpression path error: 'Pane4ButtonCommand' property not found on 'object' ''Pane2ViewModel' (HashCode=63892678)'. BindingExpression:Path=DataContext.Pane4ButtonCommand; DataItem='RadGridView' (Name='RadGridViewPane4'); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
Herewith I have attached the sample project[Change the extension as zip]
Could I know what the workaround is if there is a known issue?
Thanks.
Hello all,
Sorry if, at least the title, might seem odd at least but bear with me because it does make sense in the end.
I need a TreeList to show items that are not initially editable (i.e.: clicking on them won't start editing) but are editable in certain conditions controlled programatically. Such as pressing F2 or adding a new item in the TreeList...
Otherwise a double click is a command that should open the item in a new window (or something) and in this case the first click selects it and the second makes it enter edit mode although it is read-only.
I have isolated the problem and it seems that no matter if I set IsReadOnly=true for both the RadTreeListView and the column itself. Just adding a CellEditTemplate makes it by default editable although I wish it weren't. The only workaround that I have found is to remove completely the CellEditTemplate.
I am not able to attach an archive with a specially-prepared project that shows this exact problem. Therefore I will attach snapshots of the main files involved.
MyPublic Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, _ ByVal culture As Globalization.CultureInfo) As Object _ Implements IValueConverter.Convert Dim myColor As New SolidColorBrush(System.Windows.Media.Colors.Black) Try Dim cur As Decimal = CDec(value) If cur < 0 Then myColor = New SolidColorBrush(System.Windows.Media.Colors.Red) Catch ex As Exception End Try Return myColor End Functionxxxx.ForecolorPropertyName={Binding Path=DataColumnName, Converter=MyClassConverter}

| private void RadTreeView_SelectionChanged(object sender, SelectionChangedEventArgs e) |
| { |
| MessageBox.Show("Tree - SelectionChanged"); |
| } |