Derive from RadComboBox

7 posts, 0 answers
  1. Adam
    Adam avatar
    1 posts
    Member since:
    Jul 2008

    Posted 04 Nov 2008 Link to this post

    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?
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 05 Nov 2008 Link to this post

    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.
  3. Andrew
    Andrew avatar
    6 posts
    Member since:
    Aug 2008

    Posted 05 Nov 2008 Link to this post

    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
  4. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 06 Nov 2008 Link to this post

    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.
  5. Ramón
    Ramón avatar
    10 posts
    Member since:
    Jun 2005

    Posted 11 Feb 2009 Link to this post

    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
  6. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 12 Feb 2009 Link to this post

    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.
  7. Ramón
    Ramón avatar
    10 posts
    Member since:
    Jun 2005

    Posted 12 Feb 2009 Link to this post

    Thanks, Hristo,   it works!!!
Back to Top