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

RadCombobox IsEditable System.Reflection.TargetInvocationException

3 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yanet
Top achievements
Rank 1
Yanet asked on 07 Jan 2013, 02:59 PM
Hello,

   After updated  the Telerik dll I am not able to use the IsEnable property of the RadComoboBox (using silverlight 4)

   I want to alllow the user to type in the combobox if the desired option is not available in the list. This was working fine untill I updated the dlls to version 2009.3.1314.1030. Now when I add in my XAML the IsEditable property I have a build error which says

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

 

Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException

An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.

at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e) at Microsoft.Windows.Design.Platform.SilverlightViewProducer.SilverlightContentHost.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.ZoomableViewPresenter.DesignerBackground.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)

 

System.Exception

Error HRESULT E_FAIL has been returned from a call to a COM component.

at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)



Is this propety not longer available? Any idea about this issue? Any idea about how to implement an editable combobox in Silverlight 4?

Thanks,
Yanet

3 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 09 Jan 2013, 09:54 AM
Hello Yanet,

We are not aware of any TargetInvocationException issue concerning the IsEditable ComboBox control.

Could you share with us the version from and to which you have upgraded and more details on how you are setting the IsEditable property in your project. Some code snippets would be very helpful.

It is worth mentioning that since our Q3 2012 we have discontinued supporting RadControls for Silverlight 4 and RadControls for WPF 3.5. You can read this blog post on this topic.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yanet
Top achievements
Rank 1
answered on 10 Jan 2013, 08:56 AM
Hi Vladi,

   Thank you very much for your response. Before, I was using a trial version 2011.2.712.1040 which was updated to a non trial version 2009.3.1314.1030.

    Here is a piece of code of my XAML. In Italic you will see my radcombobox. As soon I add the IsEnabled="True" and build the project, the XAML code is underlined in blue (build compilation error) and in the desig section I got the System.Reflection.TargetInvocationException message. As soon as I remove the IsEnabled property, everithing works fine.
<Grid>

 

 

 

<Grid.RowDefinitions>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="15"></RowDefinition>

 

 

 

 

<RowDefinition Height="Auto"></RowDefinition>

 

 

 

 

<RowDefinition Height="12*" />

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

<Grid.ColumnDefinitions>

 

 

 

 

<ColumnDefinition></ColumnDefinition>

 

 

 

 

<ColumnDefinition></ColumnDefinition>

 

 

 

 

</Grid.ColumnDefinitions>

 

 

 

 

<TextBox x:Name="ConfId" Grid.Row="0" Grid.Column="1" Visibility="Collapsed"></TextBox>

 

 

 

 

<TextBlock Grid.Row="0" Grid.Column="0" Text="Instance Graph Name: *" FontWeight="Bold"></TextBlock>

 

 

 

 

<TextBox x:Name="InstanceGraphName" Grid.Row="0" Grid.Column="1" Height="Auto" IsEnabled="False"></TextBox>

 

 

 

 

<TextBlock Grid.Row="2" Grid.Column="0" Text="Model Uri: *" FontWeight="Bold"></TextBlock>

 

 

 

 

<input:RadComboBox Grid.Row="2" Grid.Column="1" x:Name="ModelUri" IsReadOnly="False" IsTextSearchEnabled="True" IsEnabled="True" SelectionChanged="ModelUri_SelectionChanged"></input:RadComboBox>

 

 

 

 

<TextBlock Grid.Row="4" Grid.Column="0" Text="Is Mapped" FontWeight="Bold"></TextBlock>

 

 

 

 

<CheckBox x:Name="IsMapped" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Click="IsMapped_Click"></CheckBox>

 

 

 

 

<TextBlock Grid.Row="6" Grid.Column="0" Text="Mapped Model Uri:" FontWeight="Bold"></TextBlock>

 

 

 

 

<input:RadComboBox x:Name="MappedModelUri" Grid.Row="6" Grid.Column="1" IsTextSearchEnabled="False" IsEditable="False"></input:RadComboBox>

 

 

 

 

<TextBlock Grid.Row="8" Grid.Column="0" Text="Use Raw:" FontWeight="Bold" ></TextBlock>

 

 

 

 

<CheckBox x:Name="UseRaw" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"></CheckBox>

 

 

 

 

<TextBlock Grid.Row="10" Grid.Column="0" Text="Raw Tag Uri: *" FontWeight="Bold"></TextBlock>

 

 

 

 

<input:RadComboBox x:Name="RawTagUri" Grid.Row="10" Grid.Column="1" IsEditable="False" IsTextSearchEnabled="False"></input:RadComboBox>

 

 

 

 

<TextBlock Grid.Row="12" Grid.Column="0" Text="Cleansed Tag Uri: *" FontWeight="Black"></TextBlock>

 

 

 

 

<input:RadComboBox x:Name="CleansedTagUri" Grid.Row="12" Grid.Column="1" IsEditable="False" IsTextSearchEnabled="False" ></input:RadComboBox>

 

 

 

 

 

</Grid>

 


     Thank you for share the blog post regarding the RadControls and Silverlight4. I really like RadControls but I guess I will change it as it is not supported for Silverlight4. 
   
      Let me know if you need additional information.

Regards,
Yanet

   

 

 

 

0
Vladi
Telerik team
answered on 10 Jan 2013, 10:03 AM
Hi Yanet,

It looks that you are going backwards in the versions of the controls and it is expected that some feature which are working in the newer versions wont work in the older versions of RadControls, also note that the  2009.3.1314.1030 version of RadControls is for Silverlight 3 not for Silverlight 4.

Since we no longer support Silverlight 4 and Silverlight 3 we will not be able to provide you with a fix for any issues in those platforms.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Yanet
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Yanet
Top achievements
Rank 1
Share this question
or