Hello,
I am really hoping that someone can help me. I am new to the Telerik controls and am having an issue with the saving of the layout of a RadDocking control when it is embedded within a RadTabControl's ContentTemplate.
I am saving the layout to a file so I can verify that it is being formatted correctly, however the SerializationTags are not getting output to the file.
Here is a snippet of the XAML to show that I am setting the SerializationTag for my RadDocumentPane:
<telerikNavigation:RadTabControl.ContentTemplate>
<DataTemplate>
<Grid>
<radDock:RadDocking x:Name="ResultDocuments" Background="Transparent"
<radDock:RadDocking.DocumentHost>
<radDock:RadSplitContainer SizeChanged="SplitContainer_SizeChanged" >
<radDock:RadPaneGroup Name="RadDocumentGroup" Background="Transparent"
radDock:RadDocking.SerializationTag="DocumentGroup">
<radDock:RadDocumentPane
DataContext="{Binding DataContext,ElementName=ResultDocuments}"
Margin="0,0,0,-5" Name="DocumentPane" Title="Documents"
radDock:RadDocking.SerializationTag="DocumentPane"
HorizontalContentAlignment="Left" CanUserClose="False">
Here is a snippet of the output file I am getting:
<GridViewColumn Header="column 1"> <GridViewColumn.CellTemplate> <DataTemplate> <TextBox x:Name="txtcontent"/> </DataTemplate> </GridViewColumn.CellTemplate></GridViewColumn>DataTemplate celltemplate = column.CellTemplate;ContentPresenter contentpresenter = ...TextBox txtbox = (TextBox)celltemplate.FindName("txtcontent", contentpresenter);A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Any idea why are those thrown?
And also if I increase the density of the grid like the next line of code
this.dynamicLayer.ZoomGridList.Add(new ZoomGrid(2 << 13, 2 << 13, 13));
the number of the errors increases tremendously.
EDIT>> I looked more into the call stack and this is the error thrown
System.ArgumentOutOfRangeException occurred Message=The added or subtracted value results in an un-representable DateTime.
Parameter name: t
Source=mscorlib
ParamName=t
StackTrace:
at System.DateTime.op_Addition(DateTime d, TimeSpan t)
InnerException:
