Telerik Forums
UI for WPF Forum
14 answers
463 views
I which control are we supposed to host the RibbonView?
The documentation uses a UserControl.

In my test this results in navigation arrows being displayed and the Quick Access Toolbar not being shown in the windows title bar.
See screenshot attached.

<UserControl x:Class="MainWindow"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadRibbonView>
                <telerik:RadRibbonView.QuickAccessToolBar>
                    <telerik:QuickAccessToolBar>
                        <telerik:RadRibbonButton Text="Save" Foreground="White"/>
                    </telerik:QuickAccessToolBar>
                </telerik:RadRibbonView.QuickAccessToolBar>
            </telerik:RadRibbonView>
        </Grid>
    </Grid>
</UserControl>

Are we supposed to use the RibbonWindow?
Petar Mladenov
Telerik team
 answered on 10 Jan 2012
7 answers
577 views
I have seen that the documentation says - http://www.telerik.com/help/wpf/radribbonview-ribbon-window-wpf.html  
RadRibbonWindow.IsWindowsThemeEnabled = false;
and setting a theme to make the ribbonwindow theme aware. I want exactly the documentation example. But I didn't  find any such property in Q2 release of 2011 edition. Can you please correct me if was wrong there?
Tina Stancheva
Telerik team
 answered on 10 Jan 2012
1 answer
155 views
Is it possible to create a dynamic contextmenu with aggregates functions for each column?
Irwing
Top achievements
Rank 1
 answered on 10 Jan 2012
3 answers
126 views
my customer would like to have a visual indicator, when vertical cells contain the same value. I've found a way to get it to work basically but some of my code looks pretty awfull.

<DataTemplate x:Key="Group_GridCellTemplate">
        <Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <style:CRowJoiner Template="{StaticResource MM_RJI}">
                    <style:CRowJoiner.DataContext>
                        <MultiBinding Converter="{StaticResource RJ}">
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Column" />
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="ParentRow" />
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Value" />
                        </MultiBinding>
                    </style:CRowJoiner.DataContext>
                </style:CRowJoiner>
                <ContentControl Grid.Column="1" Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}, Path=Value}" ContentTemplateSelector="{StaticResource GCTS}" />
            </Grid>
        </Grid>
    </DataTemplate>

as you can see i am using the gridviewcell extensively. is it possible to simply pass the gridviewcell as a whole to a converter? currently i am passing 3 properties from the same object and thats just stupid. my converter uses the information provided to do the cell joining, its not exactly simple though.
marc
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
144 views
Halo, we have a serious problem with RadDocking when we use custom header template.
If we use in DocumentHost custom template for header of RadPane and there is Button in the RadPane header, after click on this button docking operation is imediatelly started and the RadPane became floating :-(
There is sample code:
<Window x:Class="DarDataFormTest.MainWindow"
        xmlns:local="clr-namespace:DarDataFormTest"
        Title="MainWindow" Height="350" Width="525">
 
    <Window.Resources>
 
        <RoutedCommand x:Key="CommitCommand"/>
 
        <RoutedCommand x:Key="CancelCommand"/>
 
        <local:Converter x:Key="conv"/>
    </Window.Resources>
 
    <Grid>
        <telerik:RadDocking x:Name="radDocking1"  BorderThickness="0"  Padding="0">
 
            <!--DocumentHost-->
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                         
                        <telerik:RadDocumentPane Title="Description">
                            <telerik:RadDocumentPane.HeaderTemplate>
                                <DataTemplate>
                                    <StackPanel  Orientation="Horizontal">
                                        <TextBlock Text="aaaa" />
                                        <Button Margin="2">Butt</Button>
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:RadDocumentPane.HeaderTemplate>
                            <telerik:RadDocumentPane.Content>
                                <TextBlock TextWrapping="Wrap"
                                           Text="test text" />
                            </telerik:RadDocumentPane.Content>
                        </telerik:RadDocumentPane>
                         
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
        </telerik:RadDocking>
 
    </Grid>
</Window>

After we click on the button "Butt", RadPane is folowing mouse cursor until first click. Please help....
Thank you.

George
Telerik team
 answered on 10 Jan 2012
3 answers
110 views
I have a Bar series and the X axis contains the description of each bar. Some of the text is a bit long and runs into the text of the bar next to it. Does RadChart (2011 Q3) support text wrapping on the X axis? I don't see a property for it.

Thanks very much.
Sia
Telerik team
 answered on 10 Jan 2012
2 answers
195 views
Is there a limit to the number of FilterDescriptors that can be added to the FilterCollection? I seem to be receiveing a StackOverflowException in System.Core.dll if i try to add a significant number.

I need to limit the records in my Grid based upon specific ID numbers, so I am trying to add a filter desciptor for each ID to have it show only those records. My Grid has about 53,000 records, and in one example, I have 17,151 records that I need to display. How can I handle this? It works if i don't have a large number of results (i'm unsure of what the record limit before i get the error is)

I am just declaring a filter descriptor like this:
Dim filterDescriptor As New FilterDescriptor("ID", FilterOperator.IsEqualTo, id)
And then adding it to the collection
Nick Anderson
Top achievements
Rank 1
 answered on 09 Jan 2012
2 answers
140 views
Hello,

Is it possible to filter only the null values of a specific Column in GridView?

Thanks
Fanis
Top achievements
Rank 1
 answered on 09 Jan 2012
5 answers
514 views
hello Telerik,
I'm trying to define a style for a single row... I wish to have a radbusyindicator surrounding each row (i've got an even that takes some time then update a field on the current row)

what sphould I put for template as gridviewrow? should I dfine each column and how?
thanks
Paolo
Vanya Pavlova
Telerik team
 answered on 09 Jan 2012
1 answer
234 views
Hi all,

I'm working on RadScheduleView to resemble a Month Calendar, and the only option is to use Month View Definition.
In my applicaiton, users only have Appointments on working days (Mon to Fri) and the screen space of Sat/Sun empty slots on Month View will be wasted.

Question (1):
I read my posts in this Forum and found out hiding Saturday and Sunday in Month view is not supported by RadScheduleView.
Then I try to find a work-around solution to set Styles of TimeRulerMonthViewItem and TimeRulerMonthViewGroupItem . This is what I have done, setting Visibility property binding to a convert to return Collapsed for Sat and Sun:
<telerik:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector"
                                                MonthViewGroupStyle="{StaticResource timeRulerMonthViewGroupItemStyle}">        
        <telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>
            <Style TargetType="local:TimeRulerMonthViewItem">
                <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}" />
                <Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateCollapsedConverter}}" />                
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="local:TimeRulerMonthViewItem">
                            <Border Background="{TemplateBinding Background}" 
                                    BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=currentDateCalendarDateColorConverter}}" 
                                    BorderThickness="2" >
                                <Grid Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}">
                                    <telerik:RadButton Padding="0" VerticalAlignment="Top" Height="22" Command="local:RadScheduleViewCommands.SetDayViewMode" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
                                                       Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=plainCalendarDateColorConverter}}"
                                                       Style="{StaticResource ResourceKey=GoToDayButtonStyle}">                                        
                                        <ContentPresenter Margin="{TemplateBinding Padding}" />                                        
                                    </telerik:RadButton>
                                    <telerik:RadToggleButton Visibility="{Binding ExpandButtonVisibility}" IsChecked="{Binding IsExpanded, Mode=TwoWay}" HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                                             Content="More..." FontSize="9" />
                                </Grid>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>        
    </telerik:OrientedTimeRulerItemStyleSelector>

And I set the Border visibility property as well with the same binding and converter. The outcome of the ScheduleView is showing empty slots but Sat/Sun are still there and Appointments for Sat/Sun on empty slots.
Is there any thought on how to actually hide and making the slot collapsed?

Question 2:
Is there any way to set the width and height of the slot in Month View?
I had customized Appointment template which shows at least three lines of information for an Appointment. And I don't want the user to always click Expand button to see all the details. Is there any way to always show "Expanded" slot in Month View?

Many many thanks!

Frankie
Dani
Telerik team
 answered on 09 Jan 2012
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?