Telerik Forums
UI for WPF Forum
3 answers
67 views
Hi,

I have a problem with tiles maximizing as a result from the following steps:
  1. Start in restored state.
  2. User drags a tile from one position to another.
  3. User clicks on the white space within the tile that was dragged.
  4. Tile maximizes.

Is there a way to force the tiles to ONLY maximize when the tile header is clicked?

Thanks
Tracy

Here is my xaml for reference:

<telerik:RadTileView x:Name="ChartTiles"
                                Background="Transparent"
                                TileStateChangeTrigger="SingleClick"
                                telerik:StyleManager.Theme="Office_Blue"
                                ColumnWidth="Auto"
                                RowHeight="Auto"
                                MinimizedColumnWidth="300"
                                MinimizedRowHeight="300"
                                PreservePositionWhenMaximized="true"
                                IsItemsSizeInPercentages="True"
                                ItemsSource="{Binding Charts}"
                                telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                                telerik:TileViewPanel.IsRowsShrinkEnabled="True"
                                telerik:TileViewPanel.IsSizeBoundToPosition="True"
                                >
 
    <telerik:RadTileView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" Style="{StaticResource tileItemStyle}"/>
        </DataTemplate>
    </telerik:RadTileView.ItemTemplate>
 
    <telerik:RadTileView.ItemContainerStyle>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="RestoredHeight" Value="{Binding TileRestoredHeight, Mode=TwoWay}" />
            <Setter Property="RestoredWidth" Value="{Binding TileRestoredWidth, Mode=TwoWay}" />
            <Setter Property="MinimizedHeight" Value="{Binding TileMinimizedHeight, Mode=TwoWay}" />
            <Setter Property="Position" Value="{Binding TilePosition, Mode=TwoWay}" />
            <Setter Property="TileState" Value="{Binding TileState, Mode=TwoWay}" />
            <Setter Property="Background" Value="Transparent" />
        </Style>
    </telerik:RadTileView.ItemContainerStyle>
 
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <Grid x:Name="ChartTileGrid" Background="Transparent"
                  Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource TemplatedParent}}" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
 
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
 
                <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top"
                            Orientation="Horizontal" Height="30"
                            Visibility="{Binding PieBarChartSwitchVisibility}">
                    <RadioButton Content="Pie Chart" IsChecked="{Binding Path=IsPieChartActive}" Margin="0,5,0,5"/>
                    <RadioButton Content="Bar Chart" IsChecked="{Binding Path=IsBarChartActive}" Margin="5"/>
                </StackPanel>
 
                <ecaCharting:PieChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                             Height="{Binding ElementName=ChartTileGrid, Path=ActualHeight}"
                                             Width="{Binding ElementName=ChartTileGrid, Path=ActualWidth}"
                                             Visibility="{Binding Path=PieChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"                                                
                                             />
 
                <ecaCharting:BarChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                        Visibility="{Binding Path=BarChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
                                        />
 
            </Grid>
 
        </DataTemplate>
    </telerik:RadTileView.ContentTemplate>
 
</telerik:RadTileView>

 

Tina Stancheva
Telerik team
 answered on 23 May 2012
1 answer
229 views
Hi,

I have a treeview, with a hierarchical datatemplate, and then sub items are rendered with a data template which has a couple of text boxes for editing info on the treeview items. 

When I'm in the first textbox and press the tab key I want focus to move to the second textbox, but instead it jumps out of the treeview. How can I get this to work?

Here's what my datatemplate looks like:

<DataTemplate x:Key="GoverningBodyTemplate">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock VerticalAlignment="Center">Enrolment No:</TextBlock>
                    <TextBox VerticalAlignment="Center" Text="{Binding Path=EnrolmentNumber}" Width="100"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Visibility="{Binding Path=GoverningBody.RequiresBranch, Converter={StaticResource BoolToVisibilityConverter}}">
                    <TextBlock VerticalAlignment="Center">Branch No:</TextBlock>
                    <TextBox VerticalAlignment="Center" Text="{Binding Path=BranchNumber}" Width="100" TabIndex="1"/>
                </StackPanel>        
            </StackPanel>
        </DataTemplate>

Any help would be greatly appreciated!

John
Petar Mladenov
Telerik team
 answered on 23 May 2012
2 answers
214 views
Hi.

I was wondering if it was possible to change the backgroundcolor of the ApplicationButton (and leave the rest to the selected theme) in the RadRibbonView.

I'm using the Office_Silver theme, but i want the ApplicationButton the be Blue (The same color as it is in Word2010).

(I don't have Expression Blend)
Bartal
Top achievements
Rank 1
 answered on 23 May 2012
3 answers
232 views
Hi there,

I am using the RadPropertyGrid and the AutoGenerating setting for properties. The control never displays a vertical scrollbar, even if the property list extends off the bottom. I couldn't see any properties that control this.

Am I missing something?

- Lutz
Lutz
Top achievements
Rank 1
 answered on 22 May 2012
0 answers
108 views
Hello Telerik,

We have a PieSeries with an ItemsSource containing both a Value and a Category.  We need to display the Category in a tooltip.  Since the PieSeries can't be bound to a Category, can you please explain how to do this?

*Edit: never mind - I found DataItem.  Thanks!
E Pons
Top achievements
Rank 1
 asked on 22 May 2012
9 answers
133 views
Are there plans for implementing a CTRL+TAB navigation window to see previews of all dock items?

Thanks,
Shawn
Miroslav Nedyalkov
Telerik team
 answered on 22 May 2012
2 answers
123 views
Hi,

We had worked with RadWindow for Silvelight, now with WPF we are facing some problems.

In my Application i have a button that call a RadWindow with the ShowDialog Method. The window appear as expected, but if the user clicks on other application like a Web Browser, or Email, or just minimize the application, when he comes back to the app it comes with the RadWindow in the "back" of the application, and then i need to minimize all the running apps to view again my RadWindow.

Is this a bug or am I missing something? because in Silverlight this not happen.

Thanks!
Missing User
 answered on 22 May 2012
1 answer
154 views
Hello,

I have an application using CollectionIndex feature. I´m using ItemsSource and SeriesMapping radchart properties and I´m adding my lineseries at runtime. All is working great.
Now I want to load data asynchronously to radchart . My first shot was to use ObservableCollection<ObservableCollection> on my ItemsSource but the chart only shows the data added to collection before my graph shows up. After some time I found RadHierarchicalObservableCollection and the lineseries began to appear but the performance is horrible. I investigated and discovered that each call to AddRange generated a Rebind.
I´m trying to add 6 series with 10000 points each. 

There are another way to do it?

Thank you very mutch.

Rosko
Telerik team
 answered on 22 May 2012
1 answer
193 views
Hi,

When I use CustomTickMark in a RadGauge, I always have this runtime error:

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='CustomTickMark'


Here a sample of code that I use. My Gauge is more complex but I striped the code just to show the tick mark:
You can see the error in the Output Panel of Visual Studio.

I can still see the mark but I want to be sure I do things properly.

Thanks.

<Grid>
    <telerik:RadGauge Height="50" HorizontalAlignment="Left" Margin="131,146,0,0" Name="radGauge1" VerticalAlignment="Top" Width="100">
        <telerik:RadialScale x:Name="radialScale" IsEnabled="False" IsHitTestVisible="False" Min="0" Max="75" MinorTicks="1" MiddleTicks="2" MajorTicks="3">
            <telerik:TickList>
                <telerik:CustomTickMark Value="10" Location="Inside" Offset="-0.02" Format="{}{0:N0}%" Length="1.3" TickWidth="0.02" Foreground="White" />
            </telerik:TickList>
        </telerik:RadialScale>
    </telerik:RadGauge>
</Grid>
Andrey
Telerik team
 answered on 22 May 2012
9 answers
254 views
I use a RadDateTimePicker, InputMode is TimePicker (standard 00:00-23:00 hours).  I need to set some times in Red color maybe bold). How can I do this?

/Ken
Stephan
Top achievements
Rank 1
 answered on 22 May 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?