Telerik Forums
UI for WPF Forum
2 answers
143 views
Good morning,

There seems to be an issue where the content of a RadTileViewItem is not visible when using the MetroTheme.
If I remove the metro theme or use a different theme then the content is visible again.

Application wide theme:
StyleManager.ApplicationTheme = new MetroTheme();

TileView control:
<telerik:RadTileView MaximizeMode="ZeroOrOne" RowHeight="200" ColumnWidth="250">
            <telerik:RadTileViewItem Header="Berkeley Park">
                <TextBlock>Test</TextBlock>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Posh Park Developments">
                <TextBlock Margin="10">Test</TextBlock>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="King Park">
                <TextBlock Margin="10">Test</TextBlock>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="King Park">
                <TextBlock Margin="10">Test</TextBlock>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="King Park">
                <TextBlock Margin="10">Test</TextBlock>
            </telerik:RadTileViewItem>
        </telerik:RadTileView>
Robert
Top achievements
Rank 1
 answered on 16 Mar 2012
5 answers
114 views
Hi,

how can i find a row in a child grid?

before i  periodly update my itemssource for my Hierachical Gridview i save my current selecteditem in a childgrid.
After i update the Itemsource i want to expand the same parentitem and select the same Childitem as before.

How can i do this?

I hope you can understand what i mean. Sorry for my bad english

grettings Johann
Johann
Top achievements
Rank 1
 answered on 16 Mar 2012
3 answers
527 views
Hi. 
I have a RadTabControl with a data bound ItemTemplate.

I am trying to tweak the data template or radtabcontrol styling so that the individual tabs will be clearly separated for the user.

The DataTemplate is a grid. If I set the background of the grid, I get a rectangular background (ie the shape of the grid instance) that does not match the nice outline with rounded corners that is highlighted when you hover over the item with the mouse. The datatemplate item does not have a background (obviously) and setting the the TabHeaderBackGround on the RadTabControl causes the entire header (tab headers as well as the canvas backgrounds) to have this background so this does not cause the individual selectable tabs to stand out, either.

How do I set a color for the same area that is highlighted when the the mouse hovers over a tab item?
Petar Mladenov
Telerik team
 answered on 16 Mar 2012
5 answers
165 views

Hi guys,

how can I use the RadmaskedDateTimeInput scheme inside a Gridview Cell ?
I tried building my GridViewDataColum with

 

DataFormatString

 

 

="{} {0:dd.MM.yyyy}"
but there I have to type the periods, too.

I'd like to have the same behaviour as in the edit field.
I only want to type the numbers, as in:

 

telerik

 

 

:RadMaskedDateTimeInput Mask="dd.MM.yyyy"

best regards
Torsten

 

Dimitrina
Telerik team
 answered on 16 Mar 2012
1 answer
69 views
Hello,



Regarding MergeFields, Is it possible to bind a MergeField to a list of strings so that the values are displayed/rendered in the document as multiple text lines?

Thanks in advance,

Juanjo.
Boby
Telerik team
 answered on 16 Mar 2012
2 answers
217 views
I have a pie chart which can display up to 20 slices.  I have to manually set the color for each slice using a converter.

My biggest issue is that the "object value" being passed into the converter isn't the slice datapoint but is the datacontext of the entire chart. Hence, the hard-coded converter parameter (0, 1, ...) so that I know which dataPoint slice is being converted.

So my xaml looks like this (one style per slice (20) which is BAD for maintaining):
<chartView:PieSeries.SliceStyles>
     
    <Style TargetType="Path">
        <Setter Property="Stroke" Value="Gray"/>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="Fill" Value="{Binding Converter={StaticResource pieChartSliceToColorConverter}, ConverterParameter=0}"/>
         
    </Style>
 
    <Style TargetType="Path">
        <Setter Property="Stroke" Value="Gray"/>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="Fill" Value="{Binding Converter={StaticResource pieChartSliceToColorConverter}, ConverterParameter=1}"/>
    </Style>

Is there a different style which would eliminate the number of styles I have to maintain?  OR a different approach?

Thanks in advance.

Tracy
Tracy
Top achievements
Rank 1
 answered on 15 Mar 2012
3 answers
115 views
Dear Telerik Team!

I have a RadScheduleView Control in WeekDayView and want to show some AllDayEvents.

The Problem now is, i have defined a Start and Endtime (this is essential for the control)

<scheduleView:RadScheduleView.ViewDefinitions>
                
<scheduleView:WeekViewDefinition VisibleDays="7" Title="Wochenansicht - " FirstDayOfWeek="Monday" TimerulerMajorTickStringFormat="{}{0:HH:mm tt}" MajorTickLength="1h" MinorTickLength="30min" MinTimeRulerExtent="1" DayStartTime="06:00" DayEndTime="20:00" ShowAllDayArea="True"/>
                </scheduleView:RadScheduleView.ViewDefinitions>

So now, when i have some AllDayEvents in the AppointmentSource they will be shown in complete wrong way 
eg.: Allday Event from

08.03.2012 00:00 to 09.03.2012 00:00 will be shown from 07.03 - 08.03 in WeekDayView AllDayArea

when i delete the DayStartTime and DayEndTime Definitions, they will be shown correctly in all Views

is this a known bug ?
I need there some Solution very urgently ... 

regards
Rudi
Boyan
Telerik team
 answered on 15 Mar 2012
1 answer
99 views

Hello Team,

I am trying to
FocusVisualStyle to WPF user controls but I am not able to see the effect. Below is the XAML i am using. Please suggest me any other alternative to change the Boarder thickness.

I need to change focus behavior of the control.

Thanks for your help and support.

Thanks & Regards
Rajesh Penki

<Window x:Class="TelerikIssueApp.MainWindow"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        Title="MainWindow" Height="350" Width="525"

        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

    <Grid>       

        <Grid.Resources>

            <Style TargetType="telerik:RadDateTimePicker" x:Key="radDateTimePickerDefaulyStyleNoEnable">

                <Setter Property="telerik:StyleManager.Theme" Value="Summer"></Setter>

                <Setter Property="FontSize" Value="11" />

                <Setter Property="FocusVisualStyle" Value="{DynamicResource AllControlsFocusVisual}"/>

            </Style>

            <Style TargetType="telerik:RadMaskedTextBox" x:Key="radRadMaskedTextBoxDefaulyStyleNoEnable">

                <Setter Property="telerik:StyleManager.Theme" Value="Summer"></Setter>

                <Setter Property="FontSize" Value="11" />

                <Setter Property="FocusVisualStyle" Value="{DynamicResource AllControlsFocusVisual}"/>

            </Style>

            <Style x:Key="AllControlsFocusVisual">

                <Setter Property="Control.Template">

                    <Setter.Value>

                        <ControlTemplate>

                            <Rectangle Stroke="DeepSkyBlue" StrokeThickness="3" Margin="0,0,0,0"/>

                        </ControlTemplate>

                    </Setter.Value>

                </Setter>

            </Style>

        </Grid.Resources>

       

        <Grid.RowDefinitions>

            <RowDefinition Height="30" ></RowDefinition>

            <RowDefinition Height="30" ></RowDefinition>

            <RowDefinition Height="30" ></RowDefinition>

        </Grid.RowDefinitions>       

       

        <telerik:RadDatePicker Style="{StaticResource radDateTimePickerDefaulyStyleNoEnable}"

             Width="180" Height="22" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Grid.Row="0"/>

        <telerik:RadMaskedTextBox   Style="{StaticResource radRadMaskedTextBoxDefaulyStyleNoEnable}"

            Width="180" Height="22" HorizontalAlignment="Left"  
            
HorizontalContentAlignment="Left" Grid.Row="1"/>       

    </Grid>

</Window>

 

 

Yana
Telerik team
 answered on 15 Mar 2012
1 answer
144 views
Hello,
I am using Telerik version 2012.1
What I am trying to do is to build a chart with a single source of data. But the source, the chart type, and the color should be able to be selected in drop down comboboxes. I am having trouble figuring out how to get the color set, don't know if it is because I have a generic chart in the XAML and am setting the series definition in an attached property, or if there is another reason. Below is a sample of my code, let me know if you need more. Thank you,

Eli

        <charting:RadChart Grid.Row="3"<br>                           PaletteBrushesUseSolidColors="True"<br>                           Name="lineChart"><br>          <br>            <attached:SeriesMapper.BindingInfo><br>                <attached:SeriesBindingInfo DataTable="{Binding DataTable}"<br>                                            EmissionsTemplate="{Binding Template}" /><br>            </attached:SeriesMapper.BindingInfo><br><br>            <charting:RadChart.DefaultView><br>                <Charting:ChartDefaultView><br>                    <Charting:ChartDefaultView.ChartLegend><br>                        <Charting:ChartLegend Name="legend3" /><br>                    </Charting:ChartDefaultView.ChartLegend><br>                    <Charting:ChartDefaultView.ChartArea><br>                        <Charting:ChartArea LegendName="legend3"<br>                                            Legend="{Binding Template.CurrentTemplate}"><br>                            <Charting:ChartArea.ZoomScrollSettingsX><br>                                <Charting:ZoomScrollSettings ScrollMode="ScrollAndZoom"<br>                                                             MinZoomRange=".005" /><br>                            </Charting:ChartArea.ZoomScrollSettingsX><br><br>                            <Charting:ChartArea.AxisX><br>                                <Charting:AxisX DefaultLabelFormat="{Binding AxisXLabelFormat}"<br>                                                LabelStep="12"<br>                                                Title="Date"<br>                                                LayoutMode="Between" /><br>                            </Charting:ChartArea.AxisX><br>                            <Charting:ChartArea.AxisY><br>                                <Charting:AxisY AutoRange="True"<br>                                                Title="{Binding Template.SelectedYColumn.Alias}"<br>                                                ExtendDirection="None" /><br>                            </Charting:ChartArea.AxisY><br>                        </Charting:ChartArea><br>                    </Charting:ChartDefaultView.ChartArea><br>                </Charting:ChartDefaultView><br>            </charting:RadChart.DefaultView><br>        </charting:RadChart>

<br>        private static SeriesDefinition CreateSeriesDefinition(string seriesType)<br>        {<br>            SeriesDefinition series = null;<br><br>            switch (seriesType)<br>            {<br>                case "Line":<br>                    series = CreateLineSeriesDefinition();<br>                    break;<br>                case "Scatter":<br>                    series = CreateScatterSeriesDefinition();<br>                    break;<br>                case "Spline":<br>                    series = CreateSplineSeriesDefinition();<br>                    break;<br>            }<br><br>            series.Appearance.Foreground = new SolidColorBrush(SystemColors.ControlDarkColor);<br>            return series;<br>        }
Sia
Telerik team
 answered on 15 Mar 2012
2 answers
406 views
I have a page with a telerik RadGridView and a couple of buttons.  I'd like clicking the buttons to select the previous/next rows from the grid.  So I'm trying out RadGridViewCommands from the button's Click events:

private void prevButton_Click(object sender, RoutedEventArgs e)
{
    var cmd = RadGridViewCommands.MovePrevious as RoutedUICommand;
    cmd.Execute(null, myGrid);
}

The various move commands change the focus, but they do not change the selected row.

I've tried MoveUp, followed by SelectCurrentItem, but that doesn't seem to change the selection at all.

Ideas?
Jeff
Top achievements
Rank 1
 answered on 15 Mar 2012
Narrow your results
Selected tags
Tags
+113 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?