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

Derive from RadComboBox

6 Answers 131 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 05 Nov 2008, 12:27 AM
I've derived a new class from RadComboBox in order to add some data binding helper methods and everything has been working fine untill I updated my assemblies for the final release of Silverlight 2.0.  Now the combos are completely broken, is this no longer possible?  Was it never really suppose to be possible?

6 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 05 Nov 2008, 07:31 AM
Hi Adam,

What version of RadControls for Silverlight are you using? The version that is supposed to work with the RTM of Silverlight runtime is RadControls RC1, released several days after the RTM of Silverlight.

Tomorrow we will be releasing a new version of RadControls, that will no longer be a beta. I suggest checking it first and if the problem is not resolved, I would need your code to see what's wrong. To send it you will have to open a new support ticket and attach a simple solution that demonstrates the problem. I will respond with more suggestions as soon as possible.

All the best,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andrew
Top achievements
Rank 1
answered on 05 Nov 2008, 04:49 PM
Hi, we are on the same team with Adam.
We are using RC1 trial. I just downloaded the latest from your site, hoping that it fixed. Still does not work. The combo displays the "label-like" selected value, but no combo box is displayed.

Again, we followed your examples on how to derive from Telerik controls , that was written for SL2 Beta2. It worked fine until we converted to RC1.

Could you give us the updated example how to derive ?

Thanks,
Andrew
0
Hristo
Telerik team
answered on 06 Nov 2008, 06:17 PM
Hello Andrew,

I've answered Adam in his latest ticket about Deriving from RadComboBox.

Sincerely yours,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ramón
Top achievements
Rank 1
answered on 11 Feb 2009, 03:32 PM
Hi,

I am using RadControls_for_Silverlight_2008_3_1217,  and I am having the same problems.  I just derived from RadComboBox, like this:
Public Class IntroComboBox 
    Inherits Telerik.Windows.Controls.RadComboBox 
 
End Class 
 
 
 
No more code, and if i use it in xaml:
        <ConsultaMedica:IntroComboBox TabIndex="6" HorizontalAlignment="Left" MinWidth="250" DisplayMemberPath="Name" SelectedValue="{Binding Path=Id, Mode=TwoWay}"  VerticalAlignment="Top" Grid.Row="7" Grid.Column="1" x:Name="uxName" SelectedValuePath="Id"/> 
 
 

it only displays label-like items, no dropdown,no style, nothing.

Please advice,

Ramon
0
Hristo
Telerik team
answered on 12 Feb 2009, 08:29 AM
Hi RAMON,

This is known issue. We have changed the way RadComboBox works (or to be more specific - how RadComboBox find its themes) so for the next release this won't be a problem. As a workaround you can specify theme for the inherited ComboBox like this:

<UserControl x:Class="SilverlightDockingDemo.Page40" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="clr-namespace:SilverlightDockingDemo;assembly=SilverlightDockingDemo" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:input="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
    Width="400" Height="300">  
    <UserControl.Resources> 
        <telerik:Theme x:Key="theme" 
                Source="Telerik.Windows.Controls.Input;component/Themes/generic.xaml" /> 
    </UserControl.Resources> 
    <Grid x:Name="LayoutRoot" Background="White">  
        <local:MyCombo telerik:RadControl.Theme="{StaticResource theme}">  
            <input:RadComboBoxItem Content="One" /> 
            <input:RadComboBoxItem Content="Two" /> 
            <input:RadComboBoxItem Content="Three" /> 
        </local:MyCombo> 
    </Grid> 
</UserControl> 

Let me know if you need more help.

Regards,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ramón
Top achievements
Rank 1
answered on 12 Feb 2009, 10:04 AM
Thanks, Hristo,   it works!!!
Tags
ComboBox
Asked by
Adam
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Andrew
Top achievements
Rank 1
Hristo
Telerik team
Ramón
Top achievements
Rank 1
Share this question
or