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

I'm rather new to the ChartView component, so bear with me.

I have a RadCartesianChart that displays runtime values (a double and a DateTime essentially) on a LineSeries and is refreshed roughly once a second. The horizontal axis is a DateTimeCategoricalAxis and the vertical axis is a LinearAxis. The application is set up so that the user can display values from the last 30 seconds, 1 minute, 5 minutes or 30 minutes. However, as far as I can see, there is no way to force the chart to display a set time span, e.g. from DateTime.Now-30 seconds to DateTime.Now. Rather, the chart renders the horizontal axis according to what's in the data.

To accommodate this, I have had to implement logic that pushes and pops values from the databound ItemsSource so that it contains roughly the amount of values that I want to plot (30 seconds, 1 minute etc). However, as there is no guarantee that values come in at a fixed interval and "on the second", this results in the horizontal axis and chart as a whole "shifting about" a bit. It's also somewhat computationally intensive.

Is there any way to archive what I'm after using the RadCartesianChart?

Best regards,
Rickard
Petar Kirov
Telerik team
 answered on 18 Sep 2013
3 answers
166 views

Helooo,

I have RadBook that contain richtextbox that I want to Bind data to,

My Book Data Template is :

<DataTemplate x:Key  ="LeftPageTemplate"   >
           <StackPanel Margin="10" Background="Azure" >
           <Viewbox Name="ViewSura" Stretch="Fill"        StretchDirection="Both"          FlowDirection="RightToLeft"
                 HorizontalAlignment="Left" Width="450"  Margin="525,21,0,0" Height="600" VerticalAlignment="Top">
               <RichTextBox FontSize="22" MaxWidth ="450" MaxHeight ="600"   Name="richTextBox1"
                            Document ="{Binding FLD}" VerticalAlignment="Top"
                            Background="Brown"  FontStretch="Condensed"
                            FontFamily="KFGQPC Uthmanic Script HAFS" >
                   <RichTextBox.Resources>
                       <Style TargetType="Run">
                           <EventSetter Event="MouseLeftButtonDown"  />
                       </Style>
                   </RichTextBox.Resources>
               </RichTextBox >
           </Viewbox>
       </StackPanel>
       </DataTemplate>

In in my code Page XML File:

<Window.Resources>
       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="Dictionary1.xaml"></ResourceDictionary>
           </ResourceDictionary.MergedDictionaries>
       </ResourceDictionary>
   </Window.Resources>
   <Grid>
   <telerik:RadBook x:Name="RadBook1"
                    Margin="50"
                    LeftPageTemplate="{StaticResource LeftPageTemplate}"
                    RightPageTemplate="{StaticResource RightPageTemplate}" />

In in my C# code I did this:

ObservableCollection<RTBI > MyPages= new ObservableCollection<RTBI>();
        
          for (int i = 0; i < 10; i = i + 1)
          {
              ReadSura rs = new ReadSura();
 
              MyPages.Add(new RTBI()
              {
                  FLD = rs.readsuratxt(i + 1) //  This is to get the Flow document ..
              });
          }
          RadBook1.ItemsSource = MyPages ;
      }

Put I get the error for binding, please what am I doing wrong. Please see the attached image for error details.

Please Help.

Regards...


o
Top achievements
Rank 2
 answered on 18 Sep 2013
0 answers
218 views
The Visual Studio 2010 Design View would not load after I attempted to install a WPF hotfix.

I was able to resolve the issue this way: 
  • Click the Visual Studio menu choice:   Telerik > VS Extensions Options
  • Select "WPF" in the navigation tree on the left and then checked "Include Internal builds in Latest Version update and retrieval". Pressed OK to accept changes and close the dialog.
  • Close Visual Studio
  • Start Visual Studio which caused a notice of the latest internal build is available for download.
  • Downloaded latest internal build. 
  • Opened my project.
  • Used the Telerik > Rad Controls for WPF > Upgrade Wizard to select and  apply the latest internal build. 

~Danny
www.BlueCanyonSoftware.com 
Danny
Top achievements
Rank 2
 asked on 18 Sep 2013
1 answer
131 views
I can not get the row.IsExpandable property to keep it's setting after _RowLoaded event is done firing.  This is the last event that is fired before rendering the screen and handing control over to the user.  I am setting the IsExpandable property to either true or false in the _RowLoaded event.  Even though I am setting the IsExpandable property to false, the toggle button is still visible.  I need it to be collapsed 95% of the time.  Here is my RowLoaded method:

private void fleetGrid_RowLoaded(object sender, RowLoadedEventArgs e)
 {
       var row = e.Row as GridViewRow;
 
       if (row != null)
       {
              Record recItem = e.Row.Item as Record;
              row.IsExpandable = recItem.RequiredFields.ShowToggleOnGrid;
       }
 
}


I am populating the columns in this RadGridView dynamically, and I am using a GridViewToggleRowDetailsColumn along with GridViewDataColumns for the column types.  I only want this toggle button to show if certain properties of the row meet certain conditions, which is what the ShowToggleOnGrid was created for.  I have tried several of the online solutions -provided in the forums, but I can not get the toggle visibility I am looking for.  Any help on this issue would be greatly appreciated.  

Ray
Top achievements
Rank 1
 answered on 18 Sep 2013
1 answer
165 views
Hi!

Is there any way to make an tab don't scroll when we have too many tabs on screen?

I want to left the first tab always visible, even when scrolling.

Something exactly like the attached image.

Thank you!
Pavel R. Pavlov
Telerik team
 answered on 18 Sep 2013
4 answers
191 views
I'm trying to subclass the RadRibbonTab as a custom UserControl to be able to use PRISM to navigate to a specific ribbon tab.

However the subclassed RibbonTab never appears in the tab bar of the ribbon. I created a sample to demonstrate the problem:

MainWindow.xaml:

<Window x:Class="RadControlsWpfApp1.MainWindow"
                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"
        xmlns:local="clr-namespace:RadControlsWpfApp1"
                Title="MainWindow" Height="350" Width="525">
    <telerik:RadRibbonView>
        <telerik:RadRibbonTab Header="Tab 1">
            <telerik:RadRibbonGroup Header="Group 1">
                <telerik:RadRibbonButton Size="Large">Button 1</telerik:RadRibbonButton>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <local:UserControl1 />
    </telerik:RadRibbonView>
</Window>

UserControl1.xaml:

<telerik:RadRibbonTab x:Class="RadControlsWpfApp1.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
                      Header="Tab 2">
    <telerik:RadRibbonGroup Header="Group 2">
        <telerik:RadRibbonButton Size="Large">Button 2</telerik:RadRibbonButton>
    </telerik:RadRibbonGroup>
</telerik:RadRibbonTab>

UserControl1.xaml.cs:
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;
using Telerik.Windows.Controls;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : RadRibbonTab
    {
        public UserControl1()
        {
            InitializeComponent();
        }
    }
}

I'm probably missing something obvious, however I don't know what. Thanks for your help.

Kiril Vandov
Telerik team
 answered on 18 Sep 2013
3 answers
214 views
Hi,

I wanted to know how can i validate telerik wpf controls for some customs validations in mvvm type of architecture.
Basically i want to validate multiple controls on a button click , store the error messages of validations and display all of them in a pop-up(say sort of validation summary)

Please suggest something
Thanks in advance

Shruti
Petar Mladenov
Telerik team
 answered on 18 Sep 2013
1 answer
101 views
Hi,

Is there planned to insert the Excel Index function in the future?
Boryana
Telerik team
 answered on 18 Sep 2013
2 answers
757 views
Hi,
I'm using Telerik controls with version 2013.2.724.40, and VS 2010.
In the following code example, I'd like to use tab to navigate only between the 3 TextBoxes. IsTabStop is set to false, but the tab still stops at the RadExpander, is it an expected behavior?

Thanks.
Gong

<telerik:RadWindow x:Class="ExpanderWpfApp.MainWindow"
                   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"
                   Height="300" Width="300" >
    <StackPanel>
        <TextBox/>
        <telerik:RadExpander IsExpanded="True" IsTabStop="False">
            <TextBox/>
        </telerik:RadExpander>
        <TextBox/>
    </StackPanel>
</telerik:RadWindow>

Vadimir
Top achievements
Rank 1
 answered on 18 Sep 2013
4 answers
1.0K+ views
I have a situation where I would like to be able to add property definitions from code behind, however it doesn't appear to be working properly.

Here's what I have: I made a custom object for use in xaml called a PropertyDefinitionList:

public class PropertyDefinitionList : List<Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition>
{
    public PropertyDefinitionList() { }
}

In a resource dictionary I instance such a list like follows:

<local:ObjectPropertyFilterList x:Key="PropertyDefinitions" >
    <propertyGrid:PropertyDefinition Binding="{Binding Name}" />
    <propertyGrid:PropertyDefinition Binding="{Binding ID}" />
</local:ObjectPropertyFilterList>

I get a reference to this list in my code behind and call it PropertyList. At a certain
point I want to the property definitions to the .PropertyDefinitions collection on the
RadPropertyGrid, so in the function that does it I have the following code:

rpg1.PropertyDefinitions.AddRange(propertyDefinitionList1);
rpg1.item = targetitem;

However when the code executes I get two blank definition entries in the property grid
display. There is no display name nor value. The properties definitely exist in the object
being assigned to "item", but its like these property definitions don't get their binding
set. In another thread it was stated that property definitions have their binding
evaluated when the .item property changes, so what is happening (or not happening) here? I
figure I must be doing something wrong.

Thanks!
Ivan Ivanov
Telerik team
 answered on 18 Sep 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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?