Telerik Forums
UI for WPF Forum
5 answers
172 views
Hey,
I've got strange issues with SelectedItem Binding of the Carousel, I believe it is due to virtualization, as when an item is visible somewhere along the rendered items, I am able to "jump" to the card of the item when I'm manipulating the SelectedItem binding.
if it's not visible than nothing is happening.

If I am correct with my assumption, how do I disable virtualization assuming this is what I need to do :)

Thanks
Ariel
Ariel Ben Horesh
Top achievements
Rank 1
 answered on 21 Sep 2011
1 answer
246 views
Hi,

I need more information after the user changed an appointment per mouse-action (ViewDefinition = Timeline).
I have three cases:
a) the user changed the start time...
b) the user changed the position of the appointment
c) the user changed the end time...

In the AppointmentEdited-event I can´t find determination to handle the three cases.
My concret problem:
When the user changed the end time (see sample from 18. Oct to 19. Oct) the AppointmentEdited-event sends:
e.Appointment.start = #10/18/2011#  (ok), and...
e.Appointment.end =   #10/20/2011#. In my scenario I´m working with "full days"  (SnapAppointments="True") and i need  #10/19/2011# as end time. Thanks in advance for your feedback.


kindly regards,
Stefan
Konstantina
Telerik team
 answered on 21 Sep 2011
1 answer
185 views
I'm trying to use the RadDocking for its tabs that can be peeled off into new windows- ideally when this is done I'll have something like Chrome or IE's tabs. I know it's not a perfect match, but I don't know of any other controls that work better for this. 

My specific problem, is that when I drag a tab out of its tab strip, it floats immediately, and I don't know how to catch an event for "dropping" it- letting go of the mouse in a non-docking region. I'm hoping that I can detect the drop, rather than the pick up, because I need to build a new window around floating tabs, but I also need to make sure not to "window in" tabs in transit to other docking areas.

For reference, my current (non-working) code is below. Its problem is that I never get a chance to move tabs to existing dockin gregions, it always makes the new window.

private void radDocking1_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
      if (e.OriginalSource.GetType() == typeof(RadPane))
      {
        RadPane Pane = (RadPane)e.OriginalSource;
        if (Pane.IsFloating)
        {
          MainWindow newWindow = new MainWindow();
          Pane.RemoveFromParent();
          newWindow.radPaneGroup1.AddItem(Pane, DockPosition.Center);
          newWindow.Show();
        }      
      }
    }

Also, if you can think of a better way to make a draggable tab interface than using RadDocking, please let me know.
Konstantina
Telerik team
 answered on 21 Sep 2011
1 answer
351 views
Hello,

how can I set the font-family for all Telerik controls in my WPF project centrally?

Is there a way to override the Segoe font with Calibri?

THanks
Vanya Pavlova
Telerik team
 answered on 21 Sep 2011
1 answer
148 views
The sample code shown for the tileview does not make sense or work as this refers to RadTreeviewItems and a metadataoptions object that does not exist. http://demos.telerik.com/silverlight/#PersistenceFramework/TileViewConfigurator

This needs to be updated.

Greg
Alex Fidanov
Telerik team
 answered on 21 Sep 2011
2 answers
76 views
Hello, we currently have a problem with the RadGridView.  We are using telerik version: 2011.1.419.40.  We have a WPF window that contains a RadGridView that contains 7 columns which we load with data.  The window has a set width, so the last few columns are not shown.  The very last column has a set width to it and has text wrapping turned on.  If the data for the last column is very long, the column will make the row height jump up to whatever the text wrapping takes up.  If you slowly scroll over to this column, you can get it to a point where it will expand for the last column, and then collapse right away, and keep doing this.  Once this occurs, the window becomes unusable and has to be shut down from the task manager.  Any ideas on how to fix this?

Thanks!

-Mark Bergerson
Vera
Telerik team
 answered on 21 Sep 2011
6 answers
112 views
Hi,
I try to a a contextmenu on my HStackedBar to run a command.
I've read on manalo blog that i have to retemplated the serie (http://blogs.telerik.com/manoldonev/posts/10-02-08/wpf_silverlight_integrating_radchart_and_radcontextmenu_controls.aspx , thanks Manolo)

But i must do something wrong because the bars disappear if i use my style
Here is my code sample :

<telerik:RadTileView IsDockingEnabled="True"
    Style="{StaticResource TileGraphStyle}"
    ItemsSource="{Binding TechnicalItemsPerformance}">
<telerik:RadTileView.ContentTemplate>
    <DataTemplate x:Uid="DataTemplate_11">
        <telerik:RadChart Name="chartTechnicalItemsMax"
                            Background="Transparent"
                            BorderThickness="0"
                            IsTabStop="False"
                            UseDefaultLayout="False"
                            ItemsSource="{Binding StatusGroup}"
                            PaletteBrushes="{Binding BrushPalette}"
                            ToolTip="Display matching technical items by libraries"
                            x:Uid="chartTechnicalitems">
            <telerik:RadChart.SeriesMappings>
                <telerik:SeriesMapping x:Uid="telerik:SeriesMapping_12"
                                        LegendLabel="Success"
                                        CollectionIndex="0"
                                        ChartAreaName="ItemArea">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:HorizontalStackedBarSeriesDefinition x:Uid="telerik:StackedBarSeriesDefinition_12"
                                                                        ShowItemLabels="True">
                            <telerik:HorizontalStackedBarSeriesDefinition.ItemStyle>
                                <Style x:Uid="Style_22"
                                        TargetType="{x:Type telerik:HorizontalStackedBar}">
                                    <Setter x:Uid="Setter_208"
                                            Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate x:Uid="ControlTemplate_1"
                                                                TargetType="{x:Type telerik:HorizontalStackedBar}">
                                                <Canvas x:Uid="PART_MainContainer"
                                                        x:Name="PART_MainContainer"
                                                        Opacity="0">
  
                                                    <Canvas.ContextMenu>
                                                        <ContextMenu x:Uid="ContextMenu_1">
                                                            <MenuItem x:Uid="MenuItem_1"
                                                                Header="Go to class"
                                                                Command="{Binding StartFreeLearn}" />
                                                        </ContextMenu>
                                                    </Canvas.ContextMenu>
  
                                                    <Canvas.RenderTransform>
                                                        <ScaleTransform x:Uid="ScaleTransform_1"
                                                                        ScaleX="0" />
                                                    </Canvas.RenderTransform>
                                                    <VisualStateManager.VisualStateGroups>
                                                        <VisualStateGroup x:Uid="HoverStates"
                                                                            x:Name="HoverStates">
                                                            <VisualState x:Uid="Normal"
                                                                            x:Name="Normal">
                                                                <Storyboard x:Uid="Storyboard_1">
                                                                    <DoubleAnimation x:Uid="DoubleAnimation_1"
                                                                                        Duration="0:0:0.15"
                                                                                        To="1"
                                                                                        Storyboard.TargetProperty="Opacity"
                                                                                        Storyboard.TargetName="PART_MainContainer" />
                                                                </Storyboard>
                                                            </VisualState>
                                                            <VisualState x:Uid="Hovered"
                                                                            x:Name="Hovered">
                                                                <Storyboard x:Uid="Storyboard_2">
                                                                    <DoubleAnimation x:Uid="DoubleAnimation_2"
                                                                                        Duration="0:0:0.15"
                                                                                        To="1"
                                                                                        Storyboard.TargetProperty="Opacity"
                                                                                        Storyboard.TargetName="PART_MainContainer" />
                                                                </Storyboard>
                                                            </VisualState>
                                                            <VisualState x:Uid="Hidden"
                                                                            x:Name="Hidden">
                                                                <Storyboard x:Uid="Storyboard_3">
                                                                    <DoubleAnimation x:Uid="DoubleAnimation_3"
                                                                                        Duration="0:0:0.15"
                                                                                        To="0.15"
                                                                                        Storyboard.TargetProperty="Opacity"
                                                                                        Storyboard.TargetName="PART_MainContainer" />
                                                                </Storyboard>
                                                            </VisualState>
                                                        </VisualStateGroup>
                                                        <VisualStateGroup x:Uid="SelectionStates"
                                                                            x:Name="SelectionStates">
                                                            <VisualState x:Uid="Unselected"
                                                                            x:Name="Unselected" />
                                                            <VisualState x:Uid="Selected"
                                                                            x:Name="Selected">
                                                                <Storyboard x:Uid="Storyboard_4">
                                                                    <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_1"
                                                                                                    Duration="0:0:0.05"
                                                                                                    Storyboard.TargetProperty="Stroke"
                                                                                                    Storyboard.TargetName="PART_SelectedState">
                                                                        <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_1"
                                                                                                KeyTime="0">
                                                                            <DiscreteObjectKeyFrame.Value>
                                                                                <SolidColorBrush x:Uid="SolidColorBrush_1"
                                                                                                    Color="#B2000000" />
                                                                            </DiscreteObjectKeyFrame.Value>
                                                                        </DiscreteObjectKeyFrame>
                                                                    </ObjectAnimationUsingKeyFrames>
                                                                    <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_2"
                                                                                                    Duration="0:0:0.05"
                                                                                                    Storyboard.TargetProperty="StrokeThickness"
                                                                                                    Storyboard.TargetName="PART_SelectedState">
                                                                        <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_2"
                                                                                                KeyTime="0"
                                                                                                Value="2">
                                                                        </DiscreteObjectKeyFrame>
                                                                    </ObjectAnimationUsingKeyFrames>
                                                                </Storyboard>
                                                            </VisualState>
                                                        </VisualStateGroup>
                                                    </VisualStateManager.VisualStateGroups>
                                                    <Rectangle x:Uid="PART_DefiningGeometry"
                                                                x:Name="PART_DefiningGeometry"
                                                                Height="{TemplateBinding ItemActualHeight}"
                                                                RadiusY="1"
                                                                RadiusX="1"
                                                                Style="{TemplateBinding ItemStyle}"
                                                                Width="{TemplateBinding ItemActualWidth}" />
                                                    <Rectangle x:Uid="Rectangle_1"
                                                                Height="{TemplateBinding ItemActualHeight}"
                                                                OpacityMask="Black"
                                                                RadiusY="1"
                                                                RadiusX="1"
                                                                Stroke="Transparent"
                                                                StrokeThickness="0"
                                                                Width="{TemplateBinding ItemActualWidth}">
                                                        <Rectangle.Fill>
                                                            <LinearGradientBrush x:Uid="LinearGradientBrush_1"
                                                                                    EndPoint="0.5,1"
                                                                                    StartPoint="0.5,0">
                                                                <GradientStop x:Uid="GradientStop_1"
                                                                                Color="Transparent" />
                                                                <GradientStop x:Uid="GradientStop_2"
                                                                                Color="Transparent"
                                                                                Offset="1" />
                                                                <GradientStop x:Uid="GradientStop_3"
                                                                                Color="#19FFFFFF"
                                                                                Offset="0.2" />
                                                                <GradientStop x:Uid="GradientStop_4"
                                                                                Color="#B2FFFFFF"
                                                                                Offset="0.2" />
                                                            </LinearGradientBrush>
                                                        </Rectangle.Fill>
                                                    </Rectangle>
                                                    <Rectangle x:Uid="PART_SelectedState"
                                                                x:Name="PART_SelectedState"
                                                                Fill="Transparent"
                                                                Height="{TemplateBinding ItemActualHeight}"
                                                                RadiusY="1"
                                                                RadiusX="1"
                                                                Width="{TemplateBinding ItemActualWidth}" />
                                                </Canvas>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </telerik:HorizontalStackedBarSeriesDefinition.ItemStyle>
                        </telerik:HorizontalStackedBarSeriesDefinition>
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_23"
                                                DataPointMember="YValue"
                                                FieldName="Count" />
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_24"
                                                DataPointMember="XCategory"
                                                FieldName="Name" />
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
  
                <telerik:SeriesMapping x:Uid="telerik:SeriesMapping_13"
                                        ChartAreaName="ItemArea"
                                        LegendLabel="Hesitation"
                                        CollectionIndex="1">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:HorizontalStackedBarSeriesDefinition x:Uid="telerik:StackedBarSeriesDefinition_13"
                                                                        ItemStyle="{StaticResource TechnicalBarStyle}"
                                                                        ShowItemLabels="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_25"
                                                DataPointMember="YValue"
                                                FieldName="Count" />
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_26"
                                                DataPointMember="XCategory"
                                                FieldName="Name" />
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
  
                <telerik:SeriesMapping x:Uid="telerik:SeriesMapping_14"
                                        ChartAreaName="ItemArea"
                                        LegendLabel="Unknown"
                                        CollectionIndex="2">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:HorizontalStackedBarSeriesDefinition x:Uid="telerik:StackedBarSeriesDefinition_14"
                                                                        ItemStyle="{StaticResource TechnicalBarStyle}"
                                                                        ShowItemLabels="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_27"
                                                DataPointMember="YValue"
                                                FieldName="Count" />
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_28"
                                                DataPointMember="XCategory"
                                                FieldName="Name" />
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
  
                <telerik:SeriesMapping x:Uid="telerik:SeriesMapping_15"
                                        ChartAreaName="ItemArea"
                                        LegendLabel="Misrecognition"
                                        CollectionIndex="3">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:HorizontalStackedBarSeriesDefinition x:Uid="telerik:StackedBarSeriesDefinition_15"
                                                                        ItemStyle="{StaticResource TechnicalBarStyle}"
                                                                        ShowItemLabels="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_29"
                                                DataPointMember="YValue"
                                                FieldName="Count" />
                        <telerik:ItemMapping x:Uid="telerik:ItemMapping_30"
                                                DataPointMember="XCategory"
                                                FieldName="Name" />
                    </telerik:SeriesMapping.ItemMappings>
                </telerik:SeriesMapping>
            </telerik:RadChart.SeriesMappings>
  
            <Grid x:Uid="Grid_8">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition x:Uid="ColumnDefinition_15"
                                        Width="*" />
                    <ColumnDefinition x:Uid="ColumnDefinition_16"
                                        Width="Auto" />
                </Grid.ColumnDefinitions>
                <ScrollViewer x:Uid="ScrollViewer_1"
                                Grid.Column="0"
                                HorizontalScrollBarVisibility="Disabled"
                                VerticalScrollBarVisibility="Auto">
                    <telerik:ChartArea x:Uid="ItemArea"
                                        x:Name="ItemArea"
                                        NoDataString="Not available" />
                </ScrollViewer>
                <telerik:ChartLegend x:Uid="telerik:ChartLegend_2"
                                        Grid.Column="1"
                                        Style="{StaticResource ClassificationLegendStyle}" />
            </Grid>
        </telerik:RadChart>
    </DataTemplate>
</telerik:RadTileView.ContentTemplate>
<telerik:RadTileView.ItemTemplate>
    <DataTemplate x:Uid="DataTemplate_5">
        <TextBlock x:Uid="TextBlock_12"
                    Text="{Binding Name}" />
    </DataTemplate>
</telerik:RadTileView.ItemTemplate>
</telerik:RadTileView>
TechnicalBarStyle is the same as you can see in the first serie.
It was just a try to see if it made a difference is the style was define in a ressource or in direct content, and not it doesn't...

- Cedric -
Cedric
Top achievements
Rank 1
 answered on 21 Sep 2011
3 answers
235 views
Hello,
I try to used RadScheduleView, but there is a problem...
My XAML
<Controls1:RadScheduleView 
Grid.Row="1" 
CurrentDate ="{Binding Path=. , Mode=TwoWay,
         Converter={StaticResource crossRegistersToDayStartEndTime},
         ConverterParameter={x:Static Converters:DateTimeDirection.None}}"
AppointmentsSource ="{Binding Path=., Converter={StaticResource crossRegistersToAppointmentConverter}}">
            <Controls1:RadScheduleView.ActiveViewDefinition >
            <Controls1:TimelineViewDefinition                                            
                                             Orientation="Horizontal"
                                              DayStartTime="04:00"
                                              DayEndTime="16:00"
                                              VisibleDays ="2" />               
            </Controls1:RadScheduleView.ActiveViewDefinition>
            <Controls1:RadScheduleView.ResourceTypesSource>
                <Controls1:ResourceTypeCollection>
                    <Controls1:ResourceType Name="RcpCalculation">
                        <Controls1:Resource ResourceName="RcpTimeTable" />
                        <Controls1:Resource ResourceName="RcpCrossRegister" />
                    </Controls1:ResourceType>
                </Controls1:ResourceTypeCollection>
            </Controls1:RadScheduleView.ResourceTypesSource>
        </Controls1:RadScheduleView>

and it shows appointments correctly.

Problem occures when I change VisibleDays = "1"
Although all appointments are located in the one day (the first one), none of them are shown...

I use 01535RadControls_for_WPF40_2011_2_0912_TRIAL_hotfix.

What is wrong?

thanks in advance
Robert
Valeri Hristov
Telerik team
 answered on 21 Sep 2011
2 answers
225 views
Hello

I have issue with tool window's. Can any body say how to get current active tool window? I need implement same functionality "Close" like in Visual Studio.

this._contentDocking.ActivePane

Sometimes it's null and sometimes it's wrong. 

Thank's in advance!

Miroslav Nedyalkov
Telerik team
 answered on 21 Sep 2011
2 answers
166 views
Hi

I'm fairly new to WPF. I'm trying to display a slider control between buttons on a tool bar.

I want my XAML to look something like this:

<telerik:RadToolBar>
                <telerik:RadButton ToolTip="This is a button to the the left of the slider">
                    <Image Source="/Icons/left_icon.png" />
                </telerik:RadButton>
                <telerik:RadSlider Value="5" Minimum="0" SmallChange="1" Maximum="100" />
                <telerik:RadButton ToolTip="This is a button to the right of the slider">
                    <Image Source="/Icons/right_icon.png"/>
                </telerik:RadButton>
            </telerik:RadToolBar>

This doesn't show me the slider at all. Does it need some special container or a special width set to it?
Kareema
Top achievements
Rank 2
 answered on 21 Sep 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?