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

Problems with the latest internal build (RadControls_for_Silverlight_4_2010_2_1018_DEV)

8 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 20 Oct 2010, 10:27 AM
HI, 
I am having some trouble switching to new build. I get this error:

Error: Unhandled Error in Silverlight Application 
Code: 2501    
Category: ParserError       
Message: The attachable property 'UpdateTextOnEnter' was not found in type 'TextBoxBehavior'.     
File:      
Line: 25     
Position: 30     


Can you please help me with that?
Thanks :)

8 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 20 Oct 2010, 03:27 PM
Hello DCMS,

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.

Best wishes,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 21 Oct 2010, 08:17 AM
HI Nedyalko Nikolov , 
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
0
Jan
Top achievements
Rank 1
answered on 21 Oct 2010, 08:25 AM
When I revert to default theme, it works :S
0
Jan
Top achievements
Rank 1
answered on 22 Oct 2010, 09:27 AM
HI Nedyalko Nikolov, 
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 :)
0
Nedyalko Nikolov
Telerik team
answered on 22 Oct 2010, 02:09 PM
Hi DCMS,

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?

Regards,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 25 Oct 2010, 09:01 AM
Hi Nedyalko Nikolov, 
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 ;(
0
Jan
Top achievements
Rank 1
answered on 25 Oct 2010, 09:07 AM
Hi, 
On the second look, it doesnt even get to applyTemplate, the exception occurs on  InitializeComponent() method call.
0
Nedyalko Nikolov
Telerik team
answered on 26 Oct 2010, 01:07 PM
Hello DCMS,

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.

Best wishes,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Jan
Top achievements
Rank 1
Share this question
or