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

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

3 Answers 51 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
jiang
Top achievements
Rank 1
jiang asked on 19 Dec 2010, 09:31 AM
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)

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Dec 2010, 04:27 PM
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
0
jiang
Top achievements
Rank 1
answered on 23 Dec 2010, 08:29 AM
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!
0
Tina Stancheva
Telerik team
answered on 23 Dec 2010, 03:44 PM
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
Tags
RichTextBox
Asked by
jiang
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
jiang
Top achievements
Rank 1
Share this question
or