Telerik Forums
UI for WPF Forum
1 answer
112 views
Hello,

I have a TabControl with many items and I would like to activate the DropDownButton which shows a menu containing all TabItems.
As far as I can tell this feature should be supported as there is an IsDropDownOpen Property which shows me such a menu but I can't figure out how to get this menu during runtime.

In addition I'm looking for a way to change the appearance of the Left- and RightScrollButton (for the drop down button i've seen that there is a DropDownButtonStyle Property but I did not play around with it since I don't see this button at all yet).

I hope you can help me on these issues.
Thanks,
Peter



Tina Stancheva
Telerik team
 answered on 14 Jun 2010
6 answers
766 views
Hi,

I'm slowly getting to grips with styling the GridView control. So far I've styled the GridViewRow and GridViewHeaderCell. However I have noticed that somethin in my styling for GridViewHeaderCell (or maybe something I've left out) is causing the column resize functionality to stop working. Even if I fully define CanUserResizeColumns="True" on the grid itself, it still doesn't work. By commenting out all my GridViewHeaderCell style XAML the problem disappears, so its in there somewhere! Any help would be much appreciated.

<Pen x:Key="GridViewHeaderCellDropMarkerPen" Brush="{StaticResource GridViewHeaderCellDropMarkerPenBrush}" Thickness="60" /> 
     
    <Storyboard x:Key="MouseOver"
        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity"
            <SplineDoubleKeyFrame KeyTime="0:0:0.12" Value="1" /> 
        </DoubleAnimationUsingKeyFrames> 
    </Storyboard> 
    <Storyboard x:Key="MouseOut"
        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity"
            <SplineDoubleKeyFrame KeyTime="0:0:0.12" Value="0" /> 
        </DoubleAnimationUsingKeyFrames> 
    </Storyboard> 
     
 
    <ControlTemplate x:Key="GridViewHeaderCellTemplate" TargetType="telerik:GridViewHeaderCell"
        <Grid SnapsToDevicePixels="True" > 
            <Border x:Name="GridViewHeaderCell" 
                    BorderBrush="{TemplateBinding BorderBrush}"  
                    BorderThickness="{TemplateBinding BorderThickness}" 
                    Background="{TemplateBinding Background}" 
                     
                    SnapsToDevicePixels="True" 
                    /> 
            <Border x:Name="GridViewHeaderCell_Over" 
                    BorderBrush="{StaticResource GridViewHeaderCellMouseOverBorderBrush}"  
                    BorderThickness="{TemplateBinding BorderThickness}" 
                    Background="{StaticResource GridViewHeaderCellMouseOverBackground}" 
                    Opacity="0" 
                     
                    SnapsToDevicePixels="True" 
                    /> 
            <Border x:Name="GridViewHeaderCell_Selected" 
                    BorderBrush="{StaticResource GridViewHeaderCellMouseOverBorderBrush}"  
                    BorderThickness="{TemplateBinding BorderThickness}" 
                    Background="{StaticResource GridViewHeaderCellSortedBackground}" 
                    Opacity="0" 
                     
                    SnapsToDevicePixels="True" 
                    /> 
 
                <Grid x:Name="PART_HeaderCellGrid"
                    <Grid.ColumnDefinitions> 
                        <ColumnDefinition Width="*" /> 
                        <ColumnDefinition Width="Auto"  /> 
                    </Grid.ColumnDefinitions> 
 
                    <telerik:AlignmentContentPresenter Grid.Column="0"  
                                                    Margin="3,4,2,3" 
                                                    VerticalAlignment="Center" 
                                                    TextAlignment="{TemplateBinding TextAlignment}"   
                                                    TextBlock.FontWeight="Bold"/> 
                                                      
 
                        <Grid Grid.Column="1" HorizontalAlignment="Right"  
                              Background="{StaticResource GridViewHeaderCellSortingAndFilteringContentBackground}"
                            <Grid.ColumnDefinitions> 
                                <ColumnDefinition Width="Auto"/> 
                                <ColumnDefinition Width="Auto" /> 
                            </Grid.ColumnDefinitions> 
 
                            <Path x:Name="PART_SortIndicator" Fill="{StaticResource GridViewIndicatorsPartsFill}" Stretch="Fill" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" HorizontalAlignment="Left" Margin="1,0,4,0" VerticalAlignment="Center" Width="5" Height="3" RenderTransformOrigin="0.5,0.5" > 
                                <Path.RenderTransform> 
                                    <TransformGroup> 
                                        <ScaleTransform ScaleX="1" ScaleY="-1"/> 
                                        <SkewTransform AngleX="0" AngleY="0"/> 
                                        <RotateTransform Angle="0"/> 
                                        <TranslateTransform X="0" Y="0"/> 
                                    </TransformGroup> 
                                </Path.RenderTransform> 
                            </Path> 
 
                            <telerik:FilteringDropDown Name="PART_DistinctFilterControl" Grid.Column="1"  SnapsToDevicePixels="True" 
                                                    Visibility="{TemplateBinding FilteringUIVisibility}" 
                                                    telerik:StyleManager.Theme="{StaticResource Theme}" Margin="0,0,8,0"/> 
 
                        </Grid> 
                </Grid> 
                 
        </Grid> 
         
        <ControlTemplate.Triggers> 
 
            <MultiTrigger> 
                <MultiTrigger.EnterActions> 
                    <BeginStoryboard Storyboard="{StaticResource MouseOver}" /> 
                </MultiTrigger.EnterActions> 
                <MultiTrigger.ExitActions> 
                    <BeginStoryboard Storyboard="{StaticResource MouseOut}" /> 
                </MultiTrigger.ExitActions> 
                <MultiTrigger.Conditions> 
                    <Condition Property="IsMouseOver" Value="True" /> 
                    <Condition Property="SortingState" Value="None" /> 
                </MultiTrigger.Conditions> 
            </MultiTrigger> 
             
            <Trigger Property="SortingState" Value="Ascending"
                <Setter TargetName="PART_SortIndicator" Property="Path.Visibility" Value="Visible" /> 
                <Setter TargetName="PART_SortIndicator" Property="Path.LayoutTransform" > 
                    <Setter.Value> 
                        <ScaleTransform ScaleX="1" ScaleY="1"/> 
                    </Setter.Value> 
                </Setter> 
                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1" /> 
            </Trigger> 
            <Trigger Property="SortingState" Value="Descending"
                <Setter TargetName="PART_SortIndicator" Property="Path.Visibility" Value="Visible" /> 
                <Setter TargetName="PART_SortIndicator" Property="Path.LayoutTransform" > 
                    <Setter.Value> 
                        <ScaleTransform ScaleX="1" ScaleY="-1"/> 
                    </Setter.Value> 
                </Setter> 
                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1" /> 
            </Trigger> 
            <Trigger Property="SortingState" Value="None"
                <Setter TargetName="PART_SortIndicator" Property="Path.Visibility" Value="Hidden" /> 
            </Trigger> 
        </ControlTemplate.Triggers>   
    </ControlTemplate> 
 
    <Style TargetType="telerik:GridViewHeaderCell"
        <Setter Property="Template" Value="{StaticResource GridViewHeaderCellTemplate}" /> 
        <Setter Property="Background" Value="{StaticResource GridViewHeaderBackground}" /> 
        <Setter Property="BorderBrush" Value="{StaticResource GridViewHeaderCellInnerBorderBrush}" /> 
        <Setter Property="BorderThickness" Value="0,0,2,1" /> 
        <Setter Property="Foreground" Value="{StaticResource GridViewHeaderCellForeground}" /> 
        <Setter Property="DropMarkPen" Value="{StaticResource GridViewHeaderCellDropMarkerPen}" /> 
    </Style> 
Mark
Top achievements
Rank 1
 answered on 14 Jun 2010
3 answers
129 views
Hello,

Recently we have upgraded our Telerik dlls to 2010 SP2  (had the 2010 Q1 before).
We found that some of our custom style templates for the RadGridView are no longer applied for some reason.
For example, our GridViewPanel style, our GridViewFooter style etc.

Please note - we are using implicit styles (no x:Key on the style, just TargetType).
How should we fix this? I saw you had mentioned that " All RadControls skins now get a major facelift. Your custom themes might not work as expected" - but this is rather vague and does not allow me to find out why the styles aren't applied now or how should I fix this.

To make things worse, after the Telerik upgrade, Blend does not open the solution anymore, neither does it give me any error messages.

I'd appreciate some help, Tx.
Gili
Kalin Milanov
Telerik team
 answered on 14 Jun 2010
1 answer
115 views
When we set the GridViewDataColumn BackGroundColor sometimes the selected-row-color hides behind the columncolor and sometimes it does not.
Example:
Using Background="#20FF0011" the selected-row-color appeares as aspected.
Using Background="#CCFFCC" the selected-row-color hides behind the colomn.

Why this difference?




Kalin Milanov
Telerik team
 answered on 14 Jun 2010
1 answer
111 views
how to validate if the time in a radtimepicker is less than 24 hours, and if 
largest set a default value
Kaloyan
Telerik team
 answered on 14 Jun 2010
1 answer
143 views
I´d like to know if the problem mentioned in this thread (http://www.telerik.com/community/forums/wpf/datepicker/display-date-format.aspx) was solved in the latest release of RadDatePicker control.

Thanks

Marcelo



Kaloyan
Telerik team
 answered on 14 Jun 2010
1 answer
129 views
Hi, I'm getting notification from the VS2010 Extensions Manager that there are updates for the Telerik vs extensions for WebUI, Silverlight and WPF but also being told by the Extension Manager that I have to uninstall them through Windows Add/Remove program.  But there doesn't appear to be a separate installer for this.  How do I do the update?

Thanks
Erjan Gavalji
Telerik team
 answered on 14 Jun 2010
1 answer
118 views
Setting the FrozenColumnCoun from CodeBehind works fine.
But... setting the FrozenColumnCoun in the xaml does not work anymore...
Vlad
Telerik team
 answered on 14 Jun 2010
2 answers
141 views
Hello,

I'm new to WPF,
Is there any small sample on how to Insert,Update,Delete items in a gridview using LINQ?

Thanks,
Mike

Mike_T
Top achievements
Rank 1
 answered on 13 Jun 2010
12 answers
170 views
I Need to know what is SUPPORT for POCO classes with Telerik Control Especially with RadGridView control.

however need to know what is Support for selfTracking Enitities / Linq to SQL/ WCF Data Services.


Muhammad
Top achievements
Rank 1
 answered on 13 Jun 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?