Telerik Forums
UI for WPF Forum
1 answer
157 views
Hi,

I have the following code:

            PieSeriesDefinition definition = new PieSeriesDefinition();  
            definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;  
            radChart1.DefaultSeriesDefinition = definition;  
 
            DataSeries DS = new DataSeries();  
            DataPoint DP = new DataPoint();  
 
            DS.LegendLabel = "Over25";  
            DP.YValue = 66;  
            DS.Add(DP);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS);  
 
            DataSeries DS2 = new DataSeries();  
            DataPoint DP2 = new DataPoint();  
            DS2.LegendLabel = "Over20";  
            DP2.YValue = 100;  
            DS2.Add(DP2);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS2);  
 
            DataSeries DS3 = new DataSeries();  
            DataPoint DP3 = new DataPoint();  
            DS3.LegendLabel = "Over15";  
            DP3.YValue = 120;  
            DS3.Add(DP3);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS3);  
 
            DataSeries DS4 = new DataSeries();  
            DataPoint DP4 = new DataPoint();  
            DS4.LegendLabel = "Over10";  
            DP4.YValue = 113;  
            DS4.Add(DP4);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS4);  
 
            DataSeries DS5 = new DataSeries();  
            DataPoint DP5 = new DataPoint();  
            DS5.LegendLabel = "Under10";  
            DP5.YValue = 178;  
            DS5.Add(DP5);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS5); 

But this is producing a bar chart. how do I make it a Pie chart?

Cheers,
Kevin.
Giuseppe
Telerik team
 answered on 28 May 2009
1 answer
131 views
I am about to start a new app that will be both WPF and Silverlight.  I noticed for both WPF and Silverlight RadControls that you state

"Common Codebase and Shared API with WPF Controls"

That's great but the components that I really like in Silverlight, Drag & Drop, Docking and Toolbar/Menu/ContextMenu are not in WPF.  Are there plans to add these to WPF

Regards,

Dan R.
Daniel
Top achievements
Rank 1
 answered on 27 May 2009
6 answers
150 views
Hi,

In your documentation for Q1 2009 SP2 (version 2009.1.526) WPF RadGridView it states that:-
"AutoGenerateColumns moved from RadGridView to GridViewDataControl"
however AutoGenerateColumns appears as an option when editing the radGridView node in xaml

P
Paul Gallen
Top achievements
Rank 1
 answered on 27 May 2009
5 answers
140 views
Hi,

Can you give me and example of removing nodes from your RadTreeView as the code snippet below generates an error, at line 
  
Parent.Items.Remove(DirectCast(e.Source, TreeViewItem))   


 Private Sub trvListEvents_Edited(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs) Handles trvListEvents.Edited  
        If e.OldText <> e.NewText Then 
            ActionMenuRequest(DirectCast(e.Source, RadTreeViewItem))  
        Else 
            Dim Parent As RadTreeViewItem = Me.CurrentTreeViewItem.Parent  
            Parent.Items.Remove(DirectCast(e.Source, TreeViewItem))  
        End If 
 
    End Sub 

Requirements: After Editing a node, if it does not meet a certain criteria, then delete the node.

Note: I am using the RadTreeView with LoadOnDemand

Best

P

Dimitrina
Telerik team
 answered on 27 May 2009
3 answers
93 views

Hi,

I'm having a pre purchase test for RadGridView.

I try to develop a small test program with one grid on an xbap application.
Whenever I place a RadGridView control on my page (at design time), my visual studio 2008 start to work verry slow.
Every time I open a new file or trying to view a component properties, well, lets make it short, it happens no metter what i do, the window just gets stuck for 10-30 seconds and the cpu goas up to 100% until the command is performed.

Is there any way to make the conrol work faster at design time?

Thank you.

Vlad
Telerik team
 answered on 27 May 2009
2 answers
159 views
I'm using the Caramel theme and somehow, the last column is a little bit over on the right side and thus, making the horizontal scrollbar appears. If I changes the theme to Office_Black, everything is fine. Below is the code used and some screenshot to make it more clear:

<telerik:RadGridView Name="radGridView1" telerik:StyleManager.Theme="Caramel" 
                                     ShowGroupPanel="False" IsFilteringAllowed="True" 
                                     Foreground="Black" Margin="10,30,10,20" AutoGenerateColumns="False" 
                                     RowIndicatorVisibility="Collapsed" ColumnsWidthMode="Fill"> 
 
                    <telerik:RadGridView.Columns> 
                        <telerik:GridViewDataColumn UniqueName="Title" HeaderText="Title" IsFilterable="False" /> 
                        <telerik:GridViewDataColumn UniqueName="Artist" HeaderText="Artist" Width="Auto" /> 
                        <telerik:GridViewDataColumn UniqueName="Key" HeaderText="Key" Width="Auto"/> 
                    </telerik:RadGridView.Columns> 
                </telerik:RadGridView> 

You can see the filter icon got covered up for a small part on the last column (Key).

No horizontal scrollbar, and the icon shows up perfectly.

How do I fix this issue with the Caramel theme?

Thank you very much,
Kenny.
Kenny
Top achievements
Rank 1
 answered on 25 May 2009
1 answer
179 views
Hello,

I implemented a control containing a Rad GridView and a text box for instant filtering (similar to your sample examples). I noticed that the custom filtering overrides the filtering set by the drop-down filter (contained on the column headers) menus. From what I understood, the custom filter solution that you provide in the examples alters the GridViewDataControl.FilterDescription property which is used by the drop-down filters on the column headers. Is it possible to have both filters working together? Or is it at least possible to switch back and forth between these two filtering methods?

Thank you.
Milan
Telerik team
 answered on 25 May 2009
1 answer
111 views
Hi

given the code below is there any reason why my NewNode.Begin edit is causing an exception - object ref not set to an instance of an object. This works fine if I omit the BeginEdit

  Dim NewNode As New RadTreeViewItem  
 
        NewNode.Header = Now  
 
        Me.CurrentTreeViewItem.IsExpanded = True 
        Me.CurrentTreeViewItem.Items.Add(NewNode)  
 
        NewNode.IsSelected = True 
 
        NewNode.BringIntoView()  
        NewNode.BeginEdit() 
 
Thanks

P
Valentin.Stoychev
Telerik team
 answered on 25 May 2009
1 answer
146 views
Hi,

I need to bind  a self referencing entityobject to a master detail setup for 3 tiered hierarchy, what is the best way to do this?  Curently it seems to be failing to expand the 2nd layer let along the 3rd?

Cheers,
Marcus @ c9
Vlad
Telerik team
 answered on 25 May 2009
2 answers
285 views
Is there a way to recover the area that was being used by the expander when the expander is collapsed?  I have the event captured and I have the contents set to Collapsed but the space is still left on the screen rather than yielding it to the other row in the grid.

 

<Window x:Class="WpfApplication1.Window1" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        Title="Test" Height="350" Width="250" Background="Beige">  
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="Auto" /> 
            <RowDefinition Height="Auto" /> 
        </Grid.RowDefinitions> 
        <Image Grid.Row="0" 
               Name="imageBackground"    
               HorizontalAlignment="Left" 
               VerticalAlignment="Top" 
               Source="/WpfApplication1;component/Images/master.png"   
               Stretch="Uniform" MaxHeight="250" /> 
          
        <telerik:RadExpander x:Name="radExpander"   
                             Grid.Row="1" 
                             IsExpanded="True" 
                             telerik:StyleManager.Theme="Vista" 
                             VerticalAlignment="Stretch" HorizontalAlignment="Stretch"   
                             Collapsed="radExpander_Collapsed" Expanded="radExpander_Expanded">  
            <telerik:RadExpander.Header> 
                <TextBlock x:Name="expanderCaption" Foreground="#FFFFFFFF" Text="Test Box" 
                            Visibility="Visible" /> 
            </telerik:RadExpander.Header> 
            <telerik:RadExpander.Content> 
                <WrapPanel x:Name="imageContainer" Orientation="Horizontal">  
                    <Image Margin="12" Width="200" Height="64" Stretch="Uniform" Source="/WpfApplication1;component/Images/test.png" /> 
                    <Image Margin="12" Width="200" Height="64" Stretch="Uniform" Source="/WpfApplication1;component/Images/test.png" /> 
                </WrapPanel> 
            </telerik:RadExpander.Content> 
        </telerik:RadExpander> 
    </Grid> 
</Window> 
 

 

 

code:

 

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Text;  
using System.Windows;  
using System.Windows.Controls;  
using System.Windows.Data;  
using System.Windows.Documents;  
using System.Windows.Input;  
using System.Windows.Media;  
using System.Windows.Media.Imaging;  
using System.Windows.Navigation;  
using System.Windows.Shapes;  
 
namespace WpfApplication1  
{  
    /// <summary>  
    /// Interaction logic for Window1.xaml  
    /// </summary>  
    public partial class Window1 : Window  
    {  
        public Window1()  
        {  
            InitializeComponent();  
        }  
 
        private void radExpander_Collapsed(object sender, RoutedEventArgs e)  
        {  
            if (imageContainer != null)  
                imageContainer.Visibility = Visibility.Collapsed;  
        }  
 
        private void radExpander_Expanded(object sender, RoutedEventArgs e)  
        {  
            if (imageContainer != null)  
                imageContainer.Visibility = Visibility.Visible;  
 
        }  
    }  
} 
David
Top achievements
Rank 2
 answered on 22 May 2009
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?