I am having some trouble switching to new build. I get this error:
Can you please help me with that?
Thanks :)
8 Answers, 1 is accepted
Could you please provide me with some more info about how you get this error?
Are you using ExpressionDark theme? Do you get this error message with any other theme?
Thank you in advance.
Nedyalko Nikolov
the Telerik team
We are using the windows7 theme, and the error occurs while loading the application.
I'll try to use some other theme and see what happens, but we'll need to use window7 anyway... :S
Can you tell me when can we expect the Telerik.Windows.Themes.Windows7.dll assembly to be compatible with the latest internal build?
Thank you :)
Finally I've managed to simulate the problem. The problem comes from the fact that previous LIB (latest internal build) due to mistake doesn't include Telerik.Windows.Themes.Windows7.dll and your application is using same dll with version 2010.2.0812 which is our official service pack 1.
Could you please download our current LIB (uploaded today) and let me know how it works?
Nedyalko Nikolov
the Telerik team
It works now with windows7 theme, but I have discovered another problem when using the RadDataPager. I get this exception message:
{System.Windows.Markup.XamlParseException: AG_E_UNKNOWN_ERROR [Line: 11 Position: 23] ---> System.InvalidOperationException: EndInit was called without BeginInit having previously been called on the element.
at Telerik.Windows.Controls.RadDataPager.EndInitInternal()
at Telerik.Windows.Controls.RadDataPager.EndInit()
at MS.Internal.FrameworkCallbacks.SupportInitializeEndInit(IntPtr nativeTarget)
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at OnGuard.DCMS.FrontEnd.SL.CustomControls.ClientSidePager.InitializeComponent()
at OnGuard.DCMS.FrontEnd.SL.CustomControls.ClientSidePager..ctor()}
Inner exception:
EndInit was called without BeginInit having previously been called on the element.
at Telerik.Windows.Controls.RadDataPager.EndInitInternal()
at Telerik.Windows.Controls.RadDataPager.EndInit()
at MS.Internal.FrameworkCallbacks.SupportInitializeEndInit(IntPtr nativeTarget)
Here is my pager template:
<
ControlTemplate
TargetType
=
"telerikData:RadDataPager"
x:Name
=
"ClientSidePagerVertical"
>
<
StackPanel
x:Name
=
"LayoutRoot"
Width
=
"30"
VerticalAlignment
=
"Stretch"
>
<
TextBlock
Width
=
"18"
x:Name
=
"tbSliderPosition"
Text
=
"{Binding Path=Value, ElementName=radSlider1}"
HorizontalAlignment
=
"Left"
Height
=
"18"
TextAlignment
=
"Center"
/>
<
telerik:RadSlider
x:Name
=
"radSlider1"
IsSelectionRangeEnabled
=
"False"
Minimum
=
"1"
Maximum
=
"{Binding Path=PageCount, RelativeSource={RelativeSource TemplatedParent}}"
IsDirectionReversed
=
"True"
Orientation
=
"Vertical"
IsMoveToPointEnabled
=
"True"
IsMouseWheelEnabled
=
"False"
IsEnabled
=
"{Binding Path=PageCount, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PageCountConverter}}"
IsSnapToTickEnabled
=
"True"
TickFrequency
=
"1"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Left"
HandlesVisibility
=
"Visible"
Width
=
"20"
MinHeight
=
"194"
EnableSideTicks
=
"False"
TickPlacement
=
"None"
/>
<
TextBlock
x:Name
=
"tbMaxPage"
Text
=
"{Binding Path=PageCount, RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}"
HorizontalAlignment
=
"Left"
Height
=
"18"
Width
=
"18"
VerticalAlignment
=
"Bottom"
TextAlignment
=
"Center"
/>
<
TextBox
x:Name
=
"tbxPagesize"
Height
=
"20"
Text
=
"{Binding Path=PageSize, RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Left"
Margin
=
"-4, 0,0,0"
Width
=
"30"
/>
</
StackPanel
>
</
ControlTemplate
>
This template works wit previous version, but not the last one..
Please help ;(
On the second look, it doesnt even get to applyTemplate, the exception occurs on InitializeComponent() method call.
I've tried to simulate the issue with your code and our latest internal build unfortunately to no avail. Maybe I'm doing something wrong. Could you tell me what to do in order to reproduce the problem?
P.S. I'm attaching my test project for a reference.
Nedyalko Nikolov
the Telerik team