Hi,
In some situation, when I call the "RichTextBox.Insert", I get the following error: "Object reference not set to an instance of an object"
I did investigate the problem and it will occur for every RichTextBox in a RadTabControl, execpt the first one.
Example #1:
In example #1, RadRichTextBox2 and RadRichTextBox3 will raise an error if they call the Insert function. Howerver RadRichTextBox1 won't raise any error.
Example #2
In exemple #2, no error will be raised.
Is there a bug or amI doing something wrong here?
Regards,
Simon
In some situation, when I call the "RichTextBox.Insert", I get the following error: "Object reference not set to an instance of an object"
I did investigate the problem and it will occur for every RichTextBox in a RadTabControl, execpt the first one.
Example #1:
<
Grid
>
<
telerik:RadTabControl
Name
=
"RadTabControl1"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
telerik:RadTabItem
Header
=
"Recherche"
Height
=
"23"
HorizontalAlignment
=
"Left"
Name
=
"RadTabItem1"
VerticalAlignment
=
"Top"
Width
=
"80"
>
<
telerik:RadRichTextBox
Margin
=
"0"
Name
=
"RadRichTextBox1"
/>
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Header
=
"Rapport"
Height
=
"23"
HorizontalAlignment
=
"Left"
Name
=
"RadTabItem2"
VerticalAlignment
=
"Top"
Width
=
"80"
>
<
telerik:RadRichTextBox
Margin
=
"0"
x:Name
=
"RadRichTextBox2"
/>
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Header
=
"Analyse"
Height
=
"23"
HorizontalAlignment
=
"Left"
Name
=
"RadTabItem3"
VerticalAlignment
=
"Top"
Width
=
"80"
>
<
telerik:RadRichTextBox
Margin
=
"0"
x:Name
=
"RadRichTextBox3"
/>
</
telerik:RadTabItem
>
</
telerik:RadTabControl
>
</
Grid
>
In example #1, RadRichTextBox2 and RadRichTextBox3 will raise an error if they call the Insert function. Howerver RadRichTextBox1 won't raise any error.
Example #2
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"33*"
/>
<
ColumnDefinition
Width
=
"33*"
/>
<
ColumnDefinition
Width
=
"33*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadRichTextBox
Grid.Column
=
"0"
x:Name
=
"RadRichTextBox1"
/>
<
telerik:RadRichTextBox
Grid.Column
=
"1"
x:Name
=
"RadRichTextBox2"
/>
<
telerik:RadRichTextBox
Grid.Column
=
"2"
x:Name
=
"RadRichTextBox3"
/>
</
Grid
>
In exemple #2, no error will be raised.
Is there a bug or amI doing something wrong here?
Regards,
Simon