There is an error occurs,when RadRichTextBoxRibbonUI inside a DataForm.

4 posts, 0 answers
  1. jiang
    jiang avatar
    10 posts
    Member since:
    Dec 2010

    Posted 19 Dec 2010 Link to this post

    I put RadRichTextBoxRibbonUI inside a DataForm.
    When I run ,there is an error dialog pop up.

    error content:
    can not set the object Telerik.Windows.controls.RibbonBar.Primitives.Group Chrome DependencyProperty Telerik.Windows.controls RibbonGroup dialogLauncherButtonStyle.

    System.Windows.DependencyObject.ValidateDependencyPropertyParameter(DependencyProperty dp)
    System.Windows.DependencyObject.ReadLocalValueInternal(DependencyProperty dp)
    System.Windows.Controls.DataField.UpdateBindingsOnElement(FrameworkElement element)
    System.Windows.Controls.DataField.OnContentLoaded(Object sender, RoutedEventArgs e)
    MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
     MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 22 Dec 2010 Link to this post

    Hello jiang,

    Can you please elaborate on your scenario? I tried to reproduce the issue by adding the RadRichTextBoxRibbonUI in the Controltemplate of the DataForm and it works as expected. Can you please modify the project to reproduce the issue so that we can further investigate it? Thank you in advance.

    All the best,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. jiang
    jiang avatar
    10 posts
    Member since:
    Dec 2010

    Posted 23 Dec 2010 Link to this post

    this is my code:
    <toolkit:DataForm Grid.Row="0" Name="_MainDataForm" ItemsSource="{Binding Data}" Style="{StaticResource DataForm_General}" EditEnded="_MainDataForm_EditEnded">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="340"/>
            </Grid.RowDefinitions>
            <toolkit:DataField Grid.Row="0">
                <telerik:RadComboBox SelectedIndex="0"  ItemsSource="{Binding NewsType, Source={StaticResource TypeContext}}" DisplayMemberPath="ItemValue" SelectedValue="{Binding NewsCategory, Mode=TwoWay}" SelectedValuePath="ItemId"/>
            </toolkit:DataField>
            <toolkit:DataField Grid.Row="1">
                <TextBox Text="{Binding NewsTitle, Mode=TwoWay}"/>
            </toolkit:DataField>
            <toolkit:DataField Grid.Row="2">
                <TextBox Text="{Binding Keywords, Mode=TwoWay}"/>
            </toolkit:DataField>
            <toolkit:DataField Grid.Row="3">
                <CheckBox Content="Important" IsChecked="{Binding IsImportant,Mode=TwoWay}"/>
            </toolkit:DataField>
            <toolkit:DataField Grid.Row="4">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="140"/>
                        <RowDefinition Height="200"/>
                    </Grid.RowDefinitions>
                    <telerik:RadRichTextBoxRibbonUI>
                        <telerik:RadRibbonTab Header="home">
                            <telerik:RadRibbonGroup Header="font"/>
                        </telerik:RadRibbonTab>
                    </telerik:RadRichTextBoxRibbonUI>
                    <telerik:RadRichTextBox Grid.Row="1" Height="200" Name="_newsContent">
                        <telerik:RadRichTextBox.Resources>
                            <telerikxaml:XamlDataProvider x:Key="xamlDataProvider" x:Name="_xamlDataProvider" RichTextBox="{Binding ElementName=_newsContent}" Xaml="{Binding NewsContent,Mode=TwoWay}"/>
                        </telerik:RadRichTextBox.Resources>
                    </telerik:RadRichTextBox>
                </Grid>
            </toolkit:DataField>
        </Grid>
    </toolkit:DataForm>

    thank you!
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 23 Dec 2010 Link to this post

    Hi jiang,

    Thank you for your report. It seems that it is related with the RadRibbonBar control and I added it as a bug in our PITS under the name RibbonBar: DialogLauncherButtonStyle dependency property exception is thrown and you will be able to track its progress from tomorrow the latest.

    I also updated your Telerik points accordingly.

    Greetings,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top