Telerik Forums
UI for WPF Forum
3 answers
113 views
Is there a way to add DataSeries to a ChartArea, which does not have a name?

I would like to create a custom layout for the ChartTitle, ChartArea, and ChartLegend in XAML but I only have access to the RadChart in code (not the ChartArea).  I know I can get to the DefaultView ChartArea through the RadChart object.  I could access the Content property of the RadChart and get the first ChartArea type, but that's not very elegant and is too dependent on the visual tree.

Any ideas?

<telerikChart:RadChart   
            x:Name="SeasonsChart"    
            VerticalAlignment="Stretch"   
            HorizontalAlignment="Stretch" 
            UseDefaultLayout="False" 
            Background="Transparent">  
        <Grid> 
            <Grid.RowDefinitions> 
                <RowDefinition Height="50"/>  
                <RowDefinition Height="*"/>  
            </Grid.RowDefinitions> 
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="*"/>  
                <ColumnDefinition Width="Auto"/>  
            </Grid.ColumnDefinitions> 
            <Border x:Name="SeasonsImage" Grid.ColumnSpan="2" Grid.RowSpan="2" ></Border>  
            <telerikCharting:ChartTitle 
                                    Margin="20, 0, 0, 0" 
                                    Padding="5,5,5,5" 
                                    Foreground="GhostWhite" 
                                    Grid.Row="0" 
                                    Grid.Column="0"                                      
                                    HorizontalAlignment="Left" 
                                    VerticalAlignment="Bottom"/>  
            <telerikCharting:ChartArea   
                                   LegendName="SeasonsLegend" 
                                   Background="{StaticResource springTransparentBrush}"   
                                   Padding="20, 20, 0, 30"   
                                   Grid.Row="1" 
                                   Grid.Column="0"/>  
            <telerikCharting:ChartLegend   
                                     Header="Temperatures"   
                                     Visibility="Visible" 
                                     Background="{StaticResource springTransparentBrush}" 
                                     Grid.Column="1" 
                                     Grid.Row="1" 
                                     Padding="-10, 20, 20, 30"/>  
            <input:RadComboBox x:Name="SeasonCombo"   
                          SelectionChanged="SeasonCombo_SelectionChanged" 
                          HorizontalAlignment="Right"   
                          VerticalAlignment="Bottom" 
                          Margin="0, 0, 20, 0" 
                          Grid.Row="0" 
                          Grid.Column="0" 
                          MaxWidth="150" 
                          MaxHeight="30" 
                          telerik:StyleManager.Theme="{StaticResource QsfTheme}">  
                <input:RadComboBoxItem Content="Spring"></input:RadComboBoxItem> 
                <input:RadComboBoxItem Content="Summer"></input:RadComboBoxItem> 
                <input:RadComboBoxItem Content="Autumn"></input:RadComboBoxItem> 
                <input:RadComboBoxItem Content="Winter"></input:RadComboBoxItem> 
            </input:RadComboBox> 
        </Grid> 
    </telerikChart:RadChart> 
Velin
Telerik team
 answered on 12 Mar 2010
2 answers
169 views
Hi, Telerik!

I have got a problem, and wish your help, thank you!

I try to binding a DataTable with some columns to a radGridview control (2009 Q3), but while the DataTable is empty, the radGridView control shows no column, the column header is not visible.

I want to show the colunm header always, is there any way to do this?

Thank you!
xu jundong
Top achievements
Rank 1
 answered on 12 Mar 2010
1 answer
94 views

Hello,

Using vs2010 RC and Radcontrols 2010 q1 for wpf in a new project.
Having serious problems with the load performance of the radcontrols.

When using a radgrid, radribbon and raddock on a new window.
(no data loaded in the gridview)

The window.show () takes way to long. The window is first showing without any controls. And after a view seconds the controls become visible.

 

System specs of dev system are good and cannot be the problem

I’m new to wpf (only winform experience) so maybe I forget something?

Tried running in .net 3.5 and 4.0 but found no difference.

Anybody experiencing the same problem?

 

Kind Regards,

 

Tim van Rooijen


IT Development
Top achievements
Rank 1
 answered on 11 Mar 2010
7 answers
459 views
Hi,

Is it possible to rotate a series label 90 degrees?

Kevin.
Giuseppe
Telerik team
 answered on 11 Mar 2010
5 answers
175 views
Hi,
I am working with multiple items drag and drop. My problem is that when i dragged multiple items(say 5-6) and move the mouse over the destinaltion i am unable to see the destination because the dragged items are not transparent and it is diffcult to know the exact position of the drop.
Could you please suggest me the solution or some work around.

Thanks
Balaram
Miro Miroslavov
Telerik team
 answered on 11 Mar 2010
2 answers
49 views
Hi..
I have a grid that uses the exact code as the 'Grid View' Search as type example. If I add a Boolean column the search / filter no longer works.
Jon
Top achievements
Rank 1
 answered on 11 Mar 2010
1 answer
72 views
I am having an error when I combine the WPF demonstration examples labeled "Context Menu for header cells" and "Save and Load grid settings".  The context menu in the header cells does not appear after you have saved the grid settings and come back to the grid.

Anyone know of an example that combines the above, two examples, successfully? 

Thank you.
Tsvyatko
Telerik team
 answered on 11 Mar 2010
1 answer
60 views
Hi,
DevEx has a nice feature called Expression columns for their grid with expression editor. One can use the expression editor to create an expression for a column run time.
Is there anything like that available for RadGridView either in Beta or in the current release version?
thanks
Nick
Hristo
Telerik team
 answered on 11 Mar 2010
2 answers
119 views
Hi,

when hitting return/enter after editing the DateTimePicker's value (its actually enough when it gets keyboard-focus) a System.NullReferenceException is thrown.
repro-code:
namespace RadGridViewFocusBug 
    /// <summary> 
    /// Interaction logic for Window1.xaml 
    /// </summary> 
    public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
 
            ObservableCollection<BusinessObject> col = new ObservableCollection<BusinessObject>(); 
            col.Add(new BusinessObject() { Arrival = DateTime.Now }); 
            col.Add(new BusinessObject() { Arrival = DateTime.Now }); 
            col.Add(new BusinessObject() { Arrival = DateTime.Now }); 
 
            this.DataContext = col
        } 
    } 
 
    public class BusinessObject 
    { 
        public DateTime Arrival { get; set; } 
    } 

<Window x:Class="RadGridViewFocusBug.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Title="Window1" Height="300" Width="300"
    <Grid> 
        <telerik:RadGridView ItemsSource="{Binding}" AutoGenerateColumns="False"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Header="Arrival" > 
                    <telerik:GridViewColumn.CellTemplate> 
                        <DataTemplate> 
                            <telerik:DateTimePicker SelectedDateTime="{Binding Path=Arrival, Mode=TwoWay}"/> 
                        </DataTemplate> 
                    </telerik:GridViewColumn.CellTemplate> 
                </telerik:GridViewDataColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 
</Window> 

Best Regards
Steffen
Steffen
Top achievements
Rank 1
Veteran
 answered on 11 Mar 2010
1 answer
121 views
I've just purchased the WPF components and am very impressed with the level of functionality having previously built a project using the straight Microsoft Components . One of the important requirements for our next project is the ability to drag and drop items from a ListBox to a Treeview.  Each of these components are located in separate UserControls. I have been successful in drag and dropping within the same Treeview and from the Listbox to the GridView but cannot seem to get  the ListBox to Treeview working. I am sure I am missing something basic or are there any limitations in dragging from a Listbox in one UserControl to a Treeview in another .Hope you can help

Tina Stancheva
Telerik team
 answered on 11 Mar 2010
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
Iron
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
Iron
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?