This is a migrated thread and some comments may be shown as answers.

Error since latest Update -

5 Answers 79 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 13 Dec 2012, 09:37 AM
Hi,

since i made the latest Update of WpfRadControls i get an error.

WPF:
<GroupBox Header="{Binding Source={StaticResource Lang}, XPath=SettingsVerbindungen/@Header}" Grid.Row="3" Style="{DynamicResource GroupboxStyleNorm}" MinHeight="60">
                                <Grid Name="VerbForm">
                                    <Grid.Resources>
                                        <DataTemplate x:Key="MyEditTemplate">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*"/>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition  Height="Auto"/>
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                </Grid.RowDefinitions>
                                                <telerik:DataFormDataField Label="Name" DataMemberBinding="{Binding Name, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="VerbName_txt" HorizontalAlignment="Stretch" />
                                                <telerik:DataFormDataField Label="Host" DataMemberBinding="{Binding Host, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Host_txt" />
                                                <telerik:DataFormDataField Label="Port" DataMemberBinding="{Binding Port, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Port_txt" />
                                                <telerik:DataFormDataField Label="Mandant" DataMemberBinding="{Binding Mandant, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Mandant_txt" />
                                                <telerik:DataFormDataField Label="Passwort" DataMemberBinding="{Binding Passwort, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Passwort_txt" />
                                                <telerik:DataFormDataField Label="Root-User" DataMemberBinding="{Binding RootUser, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="RootUser_txt" />
                                                <telerik:DataFormDataField Label="Root-Passwort" DataMemberBinding="{Binding rootpw, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="RootPw_txt" />
                                                <telerik:DataFormDataField Label="Ssh-Key" DataMemberBinding="{Binding SshKey, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="SshKey_txt" />
                                                <telerik:DataFormDataField Label="Arbeitsplatz" DataMemberBinding="{Binding Verb1, Mode=TwoWay}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Arbeitsplatz_txt" />
                                                <telerik:DataFormDataField Label="s3-Path" DataMemberBinding="{Binding s3Path, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="S3Path_txt" />
                                                <telerik:DataFormDataField Label="Mandant-Path" DataMemberBinding="{Binding MandPath, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="MandPath_txt" />
                                                <Button VerticalAlignment="Center" BorderThickness="0" Height="40" Width="Auto" HorizontalAlignment="Left" Name="PathGet_btn" Margin="0" Click="Button_Click" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2">
                                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                                        <Label Content="Pfade ermitteln:" FontFamily="Calibri" FontSize="14" Foreground="Black" VerticalContentAlignment="Center" Margin="0,0,5,0" />
                                                        <Image  Margin="3" Source="/ITA-Packetverwaltung;component/Images/testen.png" />
                                                    </StackPanel>
                                                    <Button.Template>
                                                        <ControlTemplate TargetType="Button">
                                                            <ContentPresenter Content="{TemplateBinding Content}" Cursor="Hand" />
                                                        </ControlTemplate>
                                                    </Button.Template>
                                                </Button>
                                            </Grid>
                                        </DataTemplate>
                                        <DataTemplate x:Key="MyTemplate">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*"/>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid.RowDefinitions>                                                   
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto"/>
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                    <RowDefinition Height="Auto" />
                                                </Grid.RowDefinitions>                                               
                                                <telerik:DataFormDataField Label="Name:" DataMemberBinding="{Binding Name, Mode=TwoWay}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="VerbName_txt" />
                                                <telerik:DataFormDataField Label="Host:" DataMemberBinding="{Binding Host, Mode=TwoWay}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Host_txt" />
                                                <telerik:DataFormDataField Label="Port:" DataMemberBinding="{Binding Port, Mode=TwoWay}" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Port_txt" />
                                                <telerik:DataFormDataField Label="Mandant:" DataMemberBinding="{Binding Mandant, Mode=TwoWay}" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Mandant_txt" />                                               
                                                <telerik:DataFormDataField Label="Root-User:" DataMemberBinding="{Binding RootUser, Mode=TwoWay}" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="RootUser_txt" />                                               
                                                <telerik:DataFormDataField Label="Ssh-Key:" DataMemberBinding="{Binding SshKey, Mode=TwoWay}" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="SshKey_txt" />
                                                <telerik:DataFormDataField Label="Arbeitsplatz:" DataMemberBinding="{Binding Verb1, Mode=TwoWay}" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="Arbeitsplatz_txt" />
                                                <telerik:DataFormDataField Label="s3-Path:" DataMemberBinding="{Binding s3Path, Mode=TwoWay}" Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="S3Path_txt" />
                                                <telerik:DataFormDataField Label="Mandant-Path:" DataMemberBinding="{Binding MandPath, Mode=TwoWay}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch" Margin="0,10,0,0" Name="MandPath_txt" />
                                            </Grid>
                                        </DataTemplate>
                                    </Grid.Resources>
                                    <telerik:RadDataForm x:Name="VerbindungForm1" Margin="10" AutoGenerateFields="False" EditEnded="VerbindungForm1_EditEnded" telerik:StyleManager.Theme="Windows8"
                                                     ReadOnlyTemplate="{StaticResource MyTemplate}" EditTemplate="{StaticResource MyEditTemplate}" NewItemTemplate="{StaticResource MyEditTemplate}"
                                                     DeletingItem="VerbindungForm1_DeletingItem"  >
                                    </telerik:RadDataForm>
                                </Grid>
                            </GroupBox>

C#
global::System.Collections.ObjectModel.ObservableCollection<Verbindungen> AlleVerbindungen = new global::System.Collections.ObjectModel.ObservableCollection<Verbindungen>();
AlleVerbindungen = Verbindungen.GetVerbindungen();
VerbindungForm1.ItemsSource = AlleVerbindungen;

ERROR:
TargetParameterCountException

System.Reflection.TargetParameterCountException wurde nicht von Benutzercode behandelt.
  Message=Parameteranzahlkonflikt.
  Source=mscorlib
  StackTrace:
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       bei System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
       bei System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
       bei Telerik.Windows.Data.ItemPropertyInfoExtensions.GetValue(ItemPropertyInfo itemProperty, Object item) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\ItemProperties\ItemPropertyInfoExtensions.cs:Zeile 98.
       bei Telerik.Windows.Controls.RadDataForm.PopulatePropertiesInitialValues(Object currentItem) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 1019.
       bei Telerik.Windows.Controls.RadDataForm.OnCurrentItemChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 944.
       bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       bei Telerik.Windows.Controls.RadDataForm.set_CurrentItem(Object value) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 905.
       bei Telerik.Windows.Controls.RadDataForm.OnItemsCurrentChanged(Object sender, EventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 856.
       bei Telerik.Windows.Data.DataItemCollection.OnCurrentChanged(EventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.ICollectionView.cs:Zeile 479.
       bei Telerik.Windows.Data.DataItemCollection.RaiseChangeEvents() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:Zeile 950.
       bei Telerik.Windows.Data.DataItemCollection.SetItemsSource(IEnumerable source, Type type) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:Zeile 814.
       bei Telerik.Windows.Data.DataItemCollection.SetItemsSource(IEnumerable source) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:Zeile 744.
       bei Telerik.Windows.Controls.RadDataForm.OnItemsSourcePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 807.
       bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       bei Telerik.Windows.Controls.RadDataForm.set_ItemsSource(IEnumerable value) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:Zeile 794.
       bei ITA_Packetverwaltung.Dialog.Settings.Settings..ctor(String cursor_s) in E:\WPF_Dev\ITA-Packetverwaltung\ITA-Packetverwaltung\Dialog\Settings\Settings.xaml.cs:Zeile 60.
       bei ITA_Packetverwaltung.MainWindow.Settings_btn_Click(Object sender, RoutedEventArgs e) in E:\WPF_Dev\ITA-Packetverwaltung\ITA-Packetverwaltung\MainWindow.xaml.cs:Zeile 215.
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
       bei System.Windows.Controls.Button.OnClick()
       bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.EventRoute.ReInvokeHandlers(Object source, RoutedEventArgs args)
       bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       bei System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       bei System.Windows.Input.InputManager.ProcessStagingArea()
       bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  InnerException:

But why?
Thanks Best Regards
Rene

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 14 Dec 2012, 04:46 PM
Hello,

Would it be possible for you to isolate this issue in a repro project? We had one similar report and we are currently investigating the problem.

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ITA
Top achievements
Rank 1
answered on 17 Dec 2012, 09:48 AM
Hi,

I would like to do this, but it's not possible to attach the File (TelerikErrorDemo.zip - ~10MB)

Thanks best Regards
Rene
0
Ivan Ivanov
Telerik team
answered on 17 Dec 2012, 09:52 AM
Hello,

Unfortunately our community forums allow attachments only from Telerik admin users. Can you please send us a support ticket mentioning this forum thread inside. You will be able to add attachments (up to 20 MB) + 24h priority support response, 

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ITA
Top achievements
Rank 1
answered on 17 Dec 2012, 09:57 AM
hi,

done!

thanks
Rene
0
Ivan Ivanov
Telerik team
answered on 18 Dec 2012, 09:45 AM
Hi,

I am writing our response here, so that it can be available for the community. We have managed to pinpoint the source of this issue. It will be fixed with the next internal build. As we will be working with minimal workforce during the holidays, it will possibly be released in the beginning of the first new year's week.  

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataForm
Asked by
ITA
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
ITA
Top achievements
Rank 1
Share this question
or