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

As you can see in the code below, I create a RadGauge dynamically in the codebehind. The problem is the needles are not animated if I code like in this way. Do I miss something in the code?

Needle ndl = new Needle();
ndl.Foreground = new SolidColorBrush(Colors.Yellow);
                        ndl.Background = new SolidColorBrush(Colors.Yellow);
                        RadGauge rg = new RadGauge();
                        rg.Height = 100;
                        rg.Width = 100;
                        
                        ndl.IsAnimated = true;
                        ndl.Duration = new Duration(TimeSpan.FromSeconds(2));
                        rsStat.Min = 0;
                        double d = 0;
                        if (Double.TryParse(Value, out d))
                        {
                            rsStat.Label = new LabelProperties();
                            rsStat.Label.Location = ScaleObjectLocation.Inside;
                            rsStat.Label.FontSize = 8;
                            rsStat.Indicators.Add(ndl);
                            rsStat.Max = Math.Pow(10, Math.Ceiling(Math.Log10(d)));
                            ndl.Value = d;
                        }
Andrey
Telerik team
 answered on 12 May 2009
4 answers
216 views
I notice that there is a Windows control in Silverlight. Any liklihood of a similar control in your WPF tools because I need to implement am MDI interface in both silverlight and WPF. Many thanks
Valeri Hristov
Telerik team
 answered on 12 May 2009
3 answers
165 views

Hi,

I have used RadCarouselPanel with Button (Images used in the ex.) control as items as well appllied style to button. The problem is I am not getting scroll effect while clicking on button as demo shows  whereas it shows as Carousel effect on the form.

  <telerik:RadCarouselPanel x:Name="Panel1" VerticalAlignment="Center"
            IsOpacityEnabled="True" IsScalingEnabled="True" IsPathVisible="True"
            PathPadding="50" CanHorizontallyScroll="True" CanVerticallyScroll="True" >
                <Button  Style="{DynamicResource StudyMode}">Menu 1</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 2</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 3</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 4</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 5</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 6</Button>
            </telerik:RadCarouselPanel>

I can not understand what is missing. I could not find any method / way to get it work.

Thanks in advance for any help

Punit
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
149 views
Do your chart controls have any export abilities? i.e. PDF, Excel, etc.

I read that charts could be saved as an image. Is it possible to save as a vector graphic?
Vladimir Milev
Telerik team
 answered on 11 May 2009
4 answers
333 views
Hi,


I've got some problems with the GridView style:

1) How can I change the background of a RowIndicator. I tried this but it doesn't works:

 

 

 

 

<Style x:Key="{x:Type telerik:GridViewIndicatorCell}" TargetType="telerik:GridViewIndicatorCell">   
    <Setter Property="Background" Value="{StaticResource GridViewHeaderCellBackgroundBrush}" />   
</Style> 
 
 

 

 

 

 

 

2) How can I change the height of the columns header? This is not working correctly:

 

 

 

 

<Style TargetType="telerik:GridViewHeaderCell">   
    <Setter Property="Height" Value="50" />   
</Style> 
 
 

3) I've tried this:

 

 

 

 

<Style TargetType="{x:Type telerik:GridViewCell}">   
    <Setter Property="OverridesDefaultStyle" Value="False" />   
    <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" />   
    <Style.Triggers>   
        <Trigger Property="Validation.HasError" Value="True">    
            <Setter Property="BorderThickness" Value="1" />    
            <Setter Property="BorderBrush" Value="Red" />   
            <Setter Property="ToolTip" Value="{Binding RelativeSource= {RelativeSource Self},                                                       Path=(Validation.Errors)[0].ErrorContent}" />    
        </Trigger>   
    </Style.Triggers>    
</Style> 
 
 

 

 

 

 

 

 

 

 

but this column doesn't work anymore after that (Cell is empty):

 

 

 

 

<telerik:GridViewColumn>    
<telerik:GridViewColumn.CellStyle>    
<Style TargetType="{x:Type telerik:GridViewCell}">    
    <Setter Property="Template">    
        <Setter.Value>    
            <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">    
                <Border Background="{TemplateBinding Background}"    
                              BorderBrush="{TemplateBinding BorderBrush}"   
                              BorderThickness="{TemplateBinding BorderThickness}">   
                        <Button Style="{StaticResource GridImageButton}"     
                                     Click="Delete_Click">    
                                <Image Source="{StaticResource Delete}" />    
                        </Button>   
                </Border>     
            </ControlTemplate>    
        </Setter.Value>    
    </Setter>    
</Style>    
</telerik:GridViewColumn.CellStyle>    
</telerik:GridViewColumn> 
 

 

 

 

 

 

 

 

 

 

Do you know why?

Thanks,

Xavier.

 

 

 

 

 

 

 

 

 

Steffen
Top achievements
Rank 1
 answered on 11 May 2009
3 answers
238 views
Hi

     I am developing an application in which I require drag drop between two tree. But this is not directly supported in RadTreeView control,so can you suggest me how I can implement it using your RadTreeView control. Please provide me sample code if possible.
I need to implement it in urgent,so please respond it as soon as possible

Thanks in advance
Konstantin Petkov
Telerik team
 answered on 11 May 2009
2 answers
483 views
Can the NumberFormatInfo values (e.g. NumberDecimalDigits) be set in XAML or must they be set in the code behind? The OnLine help only gives examples using code behind.
Greg
Top achievements
Rank 2
 answered on 08 May 2009
1 answer
128 views
Hi,
    I just saw WPF Demo, nice work! By the way, I like the transitions when you click on navigation bar. I am new to WPF, I tried to look into code couldnt figure out how it is done. is there any way you can publish simple code here ? Do Telerik have plan to have transitions in Winforms too?

Thank you
Dwight
Telerik team
 answered on 08 May 2009
9 answers
247 views
Hi!

After upgrading to the latest release, I no longer receive updates after cells/rows have been edited.

I have attached a small example which I believe would work under last version (can't verify this since I have uninstalled it) but not under Q1.

Is there another way to hook up the events, or some other way to detect changes?

Thanks!

<Window x:Class="GraphTest.Window2" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window2" Height="300" Width="300" Loaded="Window_Loaded">  
    <Grid> 
        <telerik:RadGridView  AutoGenerateColumns="True" telerik:GridViewCell.EditEnded="gridview_EditEnded" telerik:GridViewRow.EditEnded="gridview_RowEditEnded" x:Name="gridview"  Grid.Column="0" Grid.Row="0" > 
        </telerik:RadGridView> 
    </Grid> 
</Window> 
 
using System.Windows;  
using System.Collections.ObjectModel;  
 
namespace GraphTest  
{  
    /// <summary>  
    /// Interaction logic for Window2.xaml  
    /// </summary>  
    ///   
 
    public partial class Window2 : Window  
    {  
        public Window2()  
        {  
            InitializeComponent();  
        }  
 
 
        private void Window_Loaded(object sender, RoutedEventArgs e)  
        {  
            gridview.ItemsSource = new TestList();  
        }  
 
        private void gridview_RowEditEnded(object sender, Telerik.Windows.Controls.GridView.Rows.RecordRoutedEventArgs e)  
        {  
            // Never gets called  
            MessageBox.Show("Row edit");  
        }  
 
        private void gridview_EditEnded(object sender, Telerik.Windows.Controls.GridView.Cells.CellRoutedEventArgs e)  
        {  
            // Never gets called  
            MessageBox.Show("Cell edit");  
        }  
 
    }  
 
    public class TestDataEntry  
    {  
        public int id { getset; }  
        public string value { getset; }  
    }  
 
    public class TestList : ObservableCollection<TestDataEntry>  
    {  
        public TestList()  
        {  
 
            Add(new TestDataEntry() { id = 1, value = "something" });  
            Add(new TestDataEntry() { id = 2, value = "something else" });  
        }  
 
    }  
}  
 


Nedyalko Nikolov
Telerik team
 answered on 07 May 2009
3 answers
131 views
I've got an application that updates the display every 5 mins or so and today I received this exception after it had been running for a couple hours.  I'm not using the tool tip at all so I just thought I'd make you aware of it.  The charts being shown are all 2D (1 pie, 1 bar and 2 line charts) and don't implement any user interactive behaviour.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.Charting.BaseChartItem.get_ItemToolTipTimer()
   at Telerik.Windows.Controls.Charting.BaseChartItem.HideToolTip()
   at Telerik.Windows.Controls.Charting.BaseChartItem.BaseChartItemMouseLeave(Object sender, MouseEventArgs e)
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.MouseOverProperty.FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, Boolean oldValue)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState)
   at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState)
   at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, DeferredElementTreeState& oldTreeState)
   at System.Windows.Input.MouseDevice.ChangeMouseOver(IInputElement mouseOver, Int32 timestamp)
   at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.MouseDevice.Synchronize()
   at System.Windows.Input.MouseDevice.OnHitTestInvalidatedAsync(Object sender, EventArgs e)
   at System.Windows.Input.InputManager.HitTestInvalidatedAsyncCallback(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
 



Vladimir Milev
Telerik team
 answered on 07 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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?