Telerik Forums
UI for WPF Forum
2 answers
109 views
Hello. When I am resizing my GridView some cells can be displayed without borders (like merged) (in Expression dark theme, other themes work fine). Is it bug?

UPDATE: In other themes I found the same problem. I was doing very fast  horisontal resizing

Style to my GridView

<Style x:Key="GridViewStandardStyle" TargetType="{x:Type controls:OlbGridView}">
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="GroupRenderMode" Value="Flat"/>
        <Setter Property="VirtualizingStackPanel.IsVirtualizing" Value="True"/>
        <Setter Property="AutoGenerateColumns" Value="False"/>
        <Setter Property="ShowGroupPanel" Value="False"/>
    </Style>


Thanks
Yordanka
Telerik team
 answered on 04 Feb 2013
1 answer
247 views
I'm developing an application which uses the RadCartesianChart. There is also a ComboBox where I can choose some values. The performance of the Chart control is well (zooms and pans normally) until I click on the ComboBox. After this, the performance of the chart lacks. Panning and zooming is very slow. There are 288 values in this chart.
The problem appears on my computer (Core 2 Duo T9600). The problem doesn't appear on another computer (i7). I'm confused, because the ComboBox is needed. Telerik wpf controls are in v2012.2.607.40

Here the XAML:
<Window x:Class="testingComboboxBug.MainWindow"
        xmlns:ignore="http://www.ignore.com" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d ignore"
        Height="400"
        Width="800"
        Title="MVVM Light Application"
        DataContext="{Binding Main, Source={StaticResource Locator}}">
     
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
 
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <ComboBox Grid.Column="0">
            <ComboBox.Items>
                <TextBlock Text="Bla1"/>
                <TextBlock Text="Bla2"/>
                <TextBlock Text="Bla3"/>
            </ComboBox.Items>
        </ComboBox>
        <telerik:RadCartesianChart x:Name="RadCartesianChart" Margin="0" BorderBrush="Black" BorderThickness="0" Grid.Column="1"
                Zoom="{Binding Zoom, Mode=TwoWay}" PanOffset="{Binding PanOffset, Mode=TwoWay}" HorizontalContentAlignment="Center">
            <telerik:RadCartesianChart.Background>
                <SolidColorBrush Opacity="0"/>
            </telerik:RadCartesianChart.Background>
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" />
            </telerik:RadCartesianChart.Behaviors>
 
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis PlotMode="OnTicks" MajorTickInterval="20" LabelFormat="HH:mmm"
                        LabelStyle="{StaticResource labelFontStyle}" MajorTickStyle="{StaticResource tickStyle}" ShowLabels="True" Margin="0,-2,0,0" />
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Title="Инт. ТС"/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid StripLinesVisibility="None" MajorLinesVisibility="XY" Margin="0">
                    <telerik:CartesianChartGrid.YStripeBrushes>
                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.YStripeBrushes>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <telerik:BarSeries CategoryBinding="TimeStamp" ValueBinding="Value" ItemsSource="{Binding Counts}" PointTemplate="{DynamicResource BarSeriesTemplate}">
                <telerik:BarSeries.Resources>
                    <DataTemplate x:Key="BarSeriesTemplate">
                        <!--<Rectangle StrokeThickness="0" Fill="{Binding DataItem.Quality, Converter={StaticResource QualityColorConverter}}" />-->
                        <Rectangle StrokeThickness="0" >
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF066607" Offset="0"/>
                                    <GradientStop Color="#FF00D603" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                    </DataTemplate>
                </telerik:BarSeries.Resources>
            </telerik:BarSeries>
        </telerik:RadCartesianChart>
    </Grid>
</Window>
Petar Kirov
Telerik team
 answered on 04 Feb 2013
4 answers
326 views
Hi,
I'm trying to replicate the way Windows Explorer works when you expand a node.
If you expand a node with child items, and those childred expand beyond the view, the view scrolls so that as many of the child nodes as possible are displayed.

Currently I have this code, which works the first time a node is expanded, but stops to work after contracting and expanding.

private void Tree_OnExpanded(object sender, RadRoutedEventArgs e)
{
var originalSource = e.OriginalSource
as RadTreeViewItem;
new Thread(() =>
{
    while (originalSource.ItemContainerGenerator.ContainerFromIndex(0) == null)
        Thread.Sleep(100);
        
    Dispatcher.BeginInvoke(new Action(() =>
    {
        tree.BringIntoViewMode = BringIntoViewMode.HeaderAndItems;
        originalSource.BringIntoView();
        tree.BringIntoViewMode = BringIntoViewMode.Header;
    }));
 
 
}).Start();

Is there a better way to implement this behavior?
Tina Stancheva
Telerik team
 answered on 04 Feb 2013
1 answer
70 views
Hi,

When will RadControls for WPF Q1'13 released and is available for download?

Thanks
Regards
Rene
Dimitrina
Telerik team
 answered on 04 Feb 2013
0 answers
60 views
Hi,
i have a ItemSource of an ObservableCollection<ITestObject> and the user can add new rows to my RadGridView.

If the collections contains one item, the GridView takes this type for adding a new one.
In the case that the collection is empty, the user is unable to add one item.
Is there a way to work with collection of interface objects? Or is there a workaround?
Mark
Top achievements
Rank 1
 asked on 04 Feb 2013
6 answers
336 views
Hey,

I'm working on a project that requires that I style the various elements of the RadCalendar to match the rest of the application. I've attached a mock-up of what the goal style is.

It seems that I'll need to remove the header and move the navigation buttons to the headers for the left and right-most month headers, but I'm not sure how to go about doing that as I'm not terribly well versed with Telerik on the whole (basically my first time using it) and would really appreciate any advice.

Thanks,
-Devin
Masha
Telerik team
 answered on 04 Feb 2013
1 answer
84 views

It seems that 2012 Q3 install includes ChartView demos only .

I could not find RadChart demos in demo application.

RadChart demo is not available any more?

Yavor
Telerik team
 answered on 04 Feb 2013
3 answers
710 views
I have a RadToolBar with two buttons in it. First, directly, a RadButton. This looks fine. It's border is removed, it's text is colored properly. I *assume* that the RadToolBar is applying a style to it.

Next, I have a custom control, local:DialogButton. The Template for this Control contains a RadButton. local:DialogButton is just a simple wrapper around a Rad:Button that sets it's command, and uses it differently. To encapsulate some functionality.

The RadButton inside of local:DialogButton is not styled properly.

How can I resolve this?

I was THINKING that the RadToolBar would have Style's for RadButton set in it's dictionary: and that they would thus be resolved for any children. This doesn't seem to be the case.

Or, is there a better way to encapsulate RadButton where all the expected stuff will work properly?

I chose to not inherit from RadButton because I wanted to hide the properties of RadButton that the user will not be able to use. The button does one thing. It requires the user only to set the Command. It dispatches this command differently than RadButton itself does. The user has no control over much else.
Petar Mladenov
Telerik team
 answered on 04 Feb 2013
6 answers
294 views
Hi,

I have a requirement such that when a user selects a datapoint on the RadCartesian Chartview LineSeries/ScatterLineSeries/ScatterPointSeries.
1) There would be a popup close to the datapoint and  pointing to that selected datapoint.
2) The popup would be visible until I hit close button on the popup.
3) The popup can be dragged anywhere in the chart area but it will always be pointing to the selected point.

Please let me know what points of the above three are possible in Teleriks chartview. Would this be acheivable by using annotations or RadDiagrams?
Also is this possible to do this with RadWindow (the only thing is how to point an arrow to the datapoint from the RadWindow maybe using ConversionAPI?).

Thanks
Missing User
 answered on 04 Feb 2013
1 answer
83 views
   I define my customize style on controls, how can I know which property is useful? For example, i want to change GridViewHeader color from default(office black) to LightBlue, I refer demo code used GridViewHeaderRow property, but it can't implement I want.Then, I test some header property, finally I use GridViewHeaderCell and set it background to change header color successfully.
  This way is inefficient! I have two questions:
  1. Do you have any way to get correct property when I want to define corresponding style of control.Do you have detail information document, could you send me?
  2. I learn WPF Controls Example,  there are some themes on GridView. I want to refer it to define my style structure,Do you have any advice? I use WPFInspector to attach application to find visual tree and property value, but the WPFInspector is not directly.Do you know or you are using which tool to view control styling or layout?
Maya
Telerik team
 answered on 04 Feb 2013
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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?