Telerik Forums
UI for WPF Forum
0 answers
162 views
Hello,

I have RadDataPager connected to RadGridView.
I am trying to dynamic set number of rows in paging while I change size of window to always have display maximum number of rows, which could be shown up on screen without scrolling.

Thank You in advance,
Konrad
Konrad
Top achievements
Rank 1
 asked on 02 Apr 2012
1 answer
186 views
Hello,
I want to create a dynamic query system in which the user can hide or show columns. These columns, as the query is dynamic must be created dynamically. The problem is that I use the MVVM pattern and do not know how to load columns from VM so I can control whether to show or not.

I attach a screenshot of what I need.
The image is a grid with dynamic columns. On the right is a list where the user can choose the visibility of the columns.

Thanks and sorry for my English.
Vlad
Telerik team
 answered on 02 Apr 2012
1 answer
193 views
My WPF application uses a RadTabControl.  My app runs on laptops with touch screens that are used in police cars.  The application has a Night Mode which has a subdued palette so as not to affect the officer's night vision.

I've been totally unable to change the background color of the tab control.  It has a gray gradient background normally, which is what I want during daylight hours ("day mode").  I have used Snoop to traverse the visual tree, and I've found a HeaderBackgrouind Border control.  If I change the background color in Snoop, I get the effect I want.  But if I try to change the background color of the same Border in the template in Expression Blend, the control totally ignores my changes and the background is always the gray gradient.

Also, I haven't been able to figure out how to change the colors of the selected tab.  That is, I haven't been able to find the item(s) in the temlpate that are drawn when the tab is selected.

What is causing my edits to be ignored? Is it the StyleManager attached property?  If I delete that, will my changes stick?  And if I do, what is the xaml for the gradient that is being used by the Office Black theme?  If it's none of that, how do I change the background of the tab control? 

Tony
Tony
Top achievements
Rank 1
 answered on 30 Mar 2012
1 answer
65 views
I have a large amout of data displayed in a graph.  The probelm I'm having is that I'm not getting the graph that I expect, it's like that radgraph is smothing everything out by taking a average or something, I don't want everything smoothed out.  I want the jagged lines.  When I zoom in it looks like all the data is there, it gets jagged, but zoomed out I get somthing that dosn't look right.
Evgenia
Telerik team
 answered on 30 Mar 2012
5 answers
223 views
I used Blend to redefine the template of a RadScheduleView and works fine but use the default style.

But when I change the style :
<telerik:RadScheduleView x:Name="ScheduleView" AppointmentsSource="{Binding Appointments}" Grid.Row="1" Grid.ColumnSpan="2" telerik:StyleManager.Theme="{Binding ElementName=Themes, Path=SelectedItem.Content}">

I lose every changes I made in the template.

So my questions are :
- WItch is the quickest way to define a template aware of the template changing ?
- Shoudl I define one template for each theme ?
- Is it possible to generate with blend the template with a specific theme ?
- Where can I find template of RadScheduleView in each theme ?

Thanks.
Konstantina
Telerik team
 answered on 30 Mar 2012
13 answers
282 views
Hi

I have just upgraded an application I am working on to Q1 '10. Love the improved theming btw

I have a RadPane which contains a RadTreeView with a HierarchicalDataTemplate. The HierarchicalDataTemplate includes a ContextMenu which was working beautifully with the Q4 '09 controls.

However, now that I have upgraded to Q1 '10 I notice that the Pane Floating/Dockable Menu - which used to only be available off the Header - is now available as a Context Menu everywhere within the Pane.

How can I disable this - either totally, or when the mouse cursor is over a RadTreeViewItem?

Many thanks in advance
Konstantina
Telerik team
 answered on 30 Mar 2012
3 answers
94 views
I have a GridView with a RadButton in the grid.  When ever I link the command it is disabled, I am trying to add a delete button to let the user delete the row from the database.  I have looked at the examples, but when I ever I try and implement the code the button is disabled. I have CanUsersDeleteRows = "True"
Frank
Top achievements
Rank 1
 answered on 30 Mar 2012
1 answer
292 views
Hi telerik,

We are using a RadPane for a sort of Property Editor depending on the selection in a treeview. Works well!

Now, however, we want the RadPane header to contain an image corresponding to selection in tree and it appears that RadPane header is not refreshed when the RadPane gets a new data context (before the header was a static text and we didn't need any chages to appear).

Is there a way to tell the RadPane to update it's header?

Don't know if it's relevant, but the header is formattet through a template defined in App.xaml:

<Application x:Class="Rap1D.Rap1D_WPF.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:Controls1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls">
    <Application.Resources>
        <DataTemplate x:Key="HeaderTemplateGeometry">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding VmImage}" Width="16" Height="16" Margin="2"/>
                <TextBlock Text="{Binding DisplayName}" Margin="2" />
            </StackPanel>
        </DataTemplate>
    </Application.Resources>
</Application>

And here is the RadPane:

<Controls:RadPane x:Class="Rap1D.Rap1D_WPF.CustomEditor.CustomEditor"
             [Stuff deleted]
             HeaderTemplate="{StaticResource HeaderTemplateGeometry}"                  
             Style="{StaticResource PaneStyle}">
             [Stuff deleted]
</Controls:RadPane>
Georgi
Telerik team
 answered on 30 Mar 2012
1 answer
135 views
Hi Team,
    I have two combo boxes in Gridview such that Combobox (combColumnName) is dependent on second comboBox (comboTableName). If I select an item from comboTableName, then comboColumnName item should be filter according to tableCode (where table code is relation between table name and column name).
Can you please provide sample project, in which both combos reside in gridview, one comboBox is dependent on Parent comboBox.
Definitely If no item is selected in parent Combobox, then dependent comboBox items source will be null.

Regards,
 Kamran
Dimitrina
Telerik team
 answered on 30 Mar 2012
3 answers
258 views
Hi

I have a custom style for the BarItemControlTemplate,  I'm trying to find the Grid element via code, but the FindName always return null. My goal is to be able to find the ScrollViewer element with in this template so that i can add a event handler for the ScrollChanged event. 

private void OnBreadCrumbControlCurrentItemChanged(object sender, RadRoutedEventArgs e)
{
    var breadcrumb = sender as RadBreadcrumb;
 
    if (breadcrumb != null)
    {
        var grid = breadcrumb.BarItemControlTemplate.FindName("Grid", breadcrumb.CurrentContainer) as Grid;
        grid = breadcrumb.BarItemControlTemplate.FindName("Grid", breadcrumb) as Grid;
    }
}

<Style x:Key="RadBreadcrumbStyle" TargetType="{x:Type telerik:RadBreadcrumb}">
    <Setter Property="BarItemControlTemplate">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type telerikNavigation:RadBreadcrumbBarItem}">
                <Grid x:Name="Grid">
                    <Border x:Name="headerContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <telerik:RadSplitButton x:Name="SplitButton" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Command="telerikNavigation:RadBreadcrumbCommands.ClearSelectedItem" Foreground="{TemplateBinding Foreground}"
                                                IsOpen="{Binding IsPopupOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" InnerCornerRadius="0" Margin="0"
                                                Style="{TemplateBinding SplitButtonStyle}">
                            <telerik:RadSplitButton.DropDownContent>
                                <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" HorizontalScrollBarVisibility="Auto" MaxWidth="270" MinWidth="200" Padding="0" MaxHeight="200" VerticalScrollBarVisibility="Auto">
                                    <Grid>
                                        <Grid HorizontalAlignment="Left" Width="32">
                                            <Border BorderBrush="Transparent" BorderThickness="0,0,1,0" Background="#FF848484" HorizontalAlignment="Right" Width="2"/>
                                            <Rectangle Fill="#FFF0F0F0" Margin="0,0,2,0"/>
                                        </Grid>
                                        <ItemsPresenter Margin="3"/>
                                    </Grid>
                                </ScrollViewer>
                            </telerik:RadSplitButton.DropDownContent>
                        </telerik:RadSplitButton>
                    </Border>
                </Grid>
                <ControlTemplate.Triggers>
                    <Trigger Property="HasItems" Value="False">
                        <Setter Property="DropDownIndicatorVisibility" TargetName="SplitButton" Value="Collapsed"/>
                    </Trigger>
                    <Trigger Property="IsLinearMode" Value="True">
                        <Setter Property="DropDownIndicatorVisibility" TargetName="SplitButton" Value="Collapsed"/>
                    </Trigger>
                    <Trigger Property="IsButtonPartHidden" Value="True">
                        <Setter Property="IsButtonPartVisible" TargetName="SplitButton" Value="False"/>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

Zarko
Telerik team
 answered on 30 Mar 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?