Telerik Forums
UI for WPF Forum
4 answers
267 views
I've got a RadDatePicker, and I'd like to be able to set the font of the days within the calendar, but can't find an obvious way of doing so.

Here's some code I tried:

        <telerik:RadDatePicker Grid.Row="4" Grid.Column="1" Name="DatePlanned"  
                               SelectedDate="{Binding SelectedDatePlanned, Mode=TwoWay}" > 
            <telerik:RadDatePicker.MonthViewStyle> 
                <Style> 
                    <Setter Property="Control.FontSize" Value="16" /> 
                </Style> 
            </telerik:RadDatePicker.MonthViewStyle> 
        </telerik:RadDatePicker> 

How can I accomplish this?
Kaloyan
Telerik team
 answered on 16 Apr 2010
1 answer
38 views
Hi, I'm getting this weird build error problem when I try to add a RadGridView in xaml, I've worked with other controls, and this is the first time it happens. Here's a screenshot, let me know if that is enough info:

http://www.telerik.com/community/forums/new-thread.aspx?forumId=284

Thanks!
Vlad
Telerik team
 answered on 16 Apr 2010
3 answers
96 views

Hi,


I''ve just upgraded to latest Q2 SP1 version of RadGridView and now  in the WPF designer i see the following exception.


'-2' is not a valid value for property'ViewportSize'.

   atSystem.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Objectvalue, PropertyMetadata metadata, Boolean coerceWithDeferredReference,OperationType operationType, Boolean isInternal)   atSystem.Windows.DependencyObject.SetValue(DependencyProperty dp, Objectvalue)   atSystem.Windows.Controls.Primitives.ScrollBar.set_ViewportSize(Doublevalue)   atTelerik.Windows.Controls.GridView.ScrollBarStateController.UpdateScrollBar(ScrollBarscrollBar, ScrollBarProperties properties)at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars()   atTelerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Objectsender, EventArgs e)   atSystem.Windows.ContextLayoutManager.fireLayoutUpdateEvent()   atSystem.Windows.ContextLayoutManager.UpdateLayout()   atSystem.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()   atSystem.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()   atSystem.Windows.Media.MediaContext.RenderMessageHandlerCore(ObjectresizedCompositionTarget)   atSystem.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)   atSystem.Windows.Media.MediaContext.Resize(ICompositionTargetresizedCompositionTarget)   atSystem.Windows.Interop.HwndTarget.OnResize()at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtrwparam, IntPtr lparam)   atSystem.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd,Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   atMS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegatecallback, Object args, Boolean isSingleParameter)   atSystem.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegatecallback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Thanks,
Ruben.
Hristo
Telerik team
 answered on 15 Apr 2010
8 answers
363 views
Hi,

it seems the RadScheduler's drag 'n' drop behaviour has changed.
Inside my AppointmentTemplates for the Day-View I have a lot of "custom" drag 'n' drop functionality (and scrollviewers) which was no problem before.
But with the beta the RadGridView's own Drag'n'Drop starts immediately and tries to move the appointment.

How can I disable the drag'n'drop? Or maybe there is another solution.

Best Regards
Steffen
Teodor
Telerik team
 answered on 15 Apr 2010
12 answers
372 views
I want to change the Foreground and Background of the Month and Year Button (Currently by default the foreground is grey and the background also). What is the simplest way of doing that.

Attached is the current view (December 2009)

Thanks,
Anjan
Konstantina
Telerik team
 answered on 15 Apr 2010
1 answer
119 views
Hello.

I have trouble to programatically acces element in TitleTemplate of RadPane.
I have this following style applied to my RadPane, where is also specified the DataTemplate of TitleTemplate.
For example I would like to acces the "PART_ParentControls" element. Can you please help me ?
Thanks a lot.
Here is the style xaml:

   <Style x:Key="TelerikRadPaneStyle1" TargetType="{x:Type telDockingControls:RadPane}">
        <Setter Property="CanUserPin" Value="False" />
        <Setter Property="CanFloat" Value="True" />
        <Setter Property="CanUserClose" Value="False" />
        <Setter Property="ContextMenuTemplate">
            <Setter.Value>
                <DataTemplate>
                    <telNavigationControls:RadContextMenu Visibility="Collapsed" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="TitleTemplate">
            <Setter.Value>
                <DataTemplate >
                    <Grid x:Name="mainGrid">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="20" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>

                        <Border BorderThickness="1" BorderBrush="Black" Margin="0,5,2,5" >
                            <Canvas Grid.Column="0" Background="White" Opacity="1" IsHitTestVisible="True" ToolTip="Drag to move the window" />
                        </Border>
                        
                         <breadCrumbBar:BreadcrumbBar x:Name="bar" Grid.Column="1" Margin="1" Path="News"
                                                            TraceBinding="{Binding XPath=@title}" BorderBrush="{x:Null}"
                                                            Root="{StaticResource dataProvider}" Background="Transparent"
                                                            >
                            <breadCrumbBar:BreadcrumbBar.PreButtons>
                                <Button>
                                    <Image Style="{StaticResource Backward}" Opacity="0.8" Width="16" Height="16"/>
                                </Button>
                                <Button>
                                    <Image Style="{StaticResource Forward}" Opacity="0.8" Width="16" Height="16"/>
                                </Button>
                            </breadCrumbBar:BreadcrumbBar.PreButtons>
                            <breadCrumbBar:BreadcrumbBar.Buttons>
                                <Button>
                                    <Image Style="{StaticResource Close}" Opacity="0.5" Width="16" Height="16" HorizontalAlignment="Right"/>
                                </Button>
                            </breadCrumbBar:BreadcrumbBar.Buttons>
                        </breadCrumbBar:BreadcrumbBar>
                        
                        <Grid Grid.Column="2" x:Name="PART_ParentControls" />
                        
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
Miroslav Nedyalkov
Telerik team
 answered on 15 Apr 2010
7 answers
153 views
Hi

I have the following code and I'm taking an "Object reference not set ..." when I use Bar3DSeriesDefinition.
But when I set SeriesDefinition to a 2D definition (e.g. BarSeriesDefinition), everything is OK !!!
What I'm doing wrong?

    Dim dt As New DataTable 
    dt.Columns.Add("Year"GetType(String)) 
    dt.Columns.Add("Sales"GetType(Double)) 
    dt.Rows.Add("2007", 37000) 
    dt.Rows.Add("2008", 42000) 
    dt.Rows.Add("2009", 47000) 
    dt.Rows.Add("2010", 44000) 
 
    With Me.RadChart1 
      Dim sm As New SeriesMapping 
      sm.SeriesDefinition = New Bar3DSeriesDefinition 'BarSeriesDefinition  
      sm.ItemMappings.Add(New ItemMapping("Year", DataPointMember.XCategory)) 
      sm.ItemMappings.Add(New ItemMapping("Sales", DataPointMember.YValue)) 
      .SeriesMappings.Add(sm) 
      .ItemsSource = dt 
    End With 
 

Vladimir Milev
Telerik team
 answered on 15 Apr 2010
2 answers
167 views
Good morning,

In my program, I've got 2 RadTileView.Items : one is visible and the second one is hidden depending of the number of image to display.
The first one is always visible and Maximized.

But if I change the Visibility Property of the second one to Visible, the first RadTitleView.item hide the second one.
I notice that the position property of the second one is equal to -1.

If the 2 items are visible when I start the program, the property of the second is equal to 1.

Do you have a solution to reorder the radTileView?

thanks

Madovi
Top achievements
Rank 1
 answered on 15 Apr 2010
3 answers
133 views
Hello,
I am using a slider such as the one below:
<telerik:RadSlider   
  Minimum="0" 
  Maximum="10" 
  TickFrequency="1" 
  IsSelectionRangeEnabled="True" 
  IsSnapToTickEnabled = "True" 
  MinimumRangeSpan="1" 
  SelectionStart="1" 
  SelectionEnd="2" 
/> 

Correct me if I am wrong, but I guess there is a problem, if you drag the SelectionRange area to the right, then you won't be able to move it to the left.
Is there a solution for this behavior?
Thanks :)
Tina Stancheva
Telerik team
 answered on 15 Apr 2010
1 answer
134 views
Hi,

I'm adding instances of RadPane to a RadPaneGroup at runtime following a RadMenuItem click event:
        private void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) 
        { 
            RadPane rp = new RadPane(); 
            rp.Header = "New Foo"
            rp.VerticalAlignment = VerticalAlignment.Top; 
            rp.Name = "Foo"
            rp.IsSelected = true
            radPaneGroup1.AddItem(rp, Telerik.Windows.Controls.Docking.DockPosition.Center); 
 
            Foo foo = new Foo(); 
            rp.Content = foo; 
        } 
 

The RadPane is shown as the last pane in the group and appears to have the focus as the pane header is highlighted.
However, my user control, "Foo", isn't shown in the RadPane.

Please note: This has only started happening with the Q1 2010 WPF controls! This doesn't happen with the Q3 2009 WPF controls.

If I click on a different pane then back to my new pane, the user control, "Foo", is now visible in the new pane!

If there is more than 1 pane displayed I can use this code as a workaround at the end of my click event:
            foreach (RadPane pane in radPaneGroup1.Items) 
            { 
                pane.Focus(); 
            } 
The above workaround doesn't work if the pane added is the only pane in the group.

I tried the code in Miroslav's blog but this didn't work for me either:
http://blogs.telerik.com/miroslavnedyalkov/posts/10-03-04/how_to_activate_a_pane_in_the_telerik_docking_control_for_wpf_and_silverlight.aspx

Any idea what I need to add to make my code work with the new version of these controls?

Thanks,
Mark






Miroslav Nedyalkov
Telerik team
 answered on 15 Apr 2010
Narrow your results
Selected tags
Tags
+113 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?