Telerik Forums
UI for WPF Forum
1 answer
398 views
Hello, I'm trying to do a project where I have a few checkboxes that correspond to different series. When the checkbox is checked, the series is displayed, and if the checbox is unchecked, the series is collpased. There are two problems with this:

1) The legend still shows the collapsed series
2) The values on the Y axis are not recalculated as the series go away. For example: If series "A" has max value is 5000, and series "B" max value is 250, when hiding "A" the Y values keep showing all the way up to 5000.

How can I fix these two problems?

Thank you,

- Carlo
Petar Kirov
Telerik team
 answered on 14 Sep 2013
7 answers
137 views

I am leveraging the WPF Telerik libraries for a simple Tab control. Weird enough the exact same code/solution works on my personal computer but gives the following error on my office machine:

Code

<Window x:Class="WpfApplication1.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"
    Title="MainWindow" Height="350" Width="900">
<Grid>
    <telerik:RadTabControl>
        <telerik:RadTabItem Header="Dashboard Summary" Width="200" Background="Gray">
        </telerik:RadTabItem>
        <telerik:RadTabItem Header="Details" Width="200" Background="Gray"  />
        <telerik:RadTabItem Header="Policy Tester" Width="200" Background="Gray"  />
    </telerik:RadTabControl>
</Grid>
</Window>

The exact same 3 libraries are being referenced but the same code on my office machine renders the tabs but doesnt give me intellisense and keeps throwing the following error:

Tina Stancheva
Telerik team
 answered on 13 Sep 2013
1 answer
1.3K+ views
<telerik:RadMaskedNumericInput Value="{Binding Quantity, Mode=TwoWay}">
    <telerik:RadMaskedNumericInput.InputBindings>
        <KeyBinding Key="Enter" Command="{Binding DoSomethingCommand}" />
        <KeyBinding Key="Tab" Command="{Binding DoSomethingCommand}" />
    </telerik:RadMaskedNumericInput.InputBindings>
</telerik:RadMaskedNumericInput>
I am trying to call to a command when the Enter key is pressed like an exemple above.
The Tab KeyBinding works perfectly, but the Enter doesn't work.

This behavior works in a TextBox, is this possible in a MaskedInput?
Method
Top achievements
Rank 1
 answered on 13 Sep 2013
0 answers
75 views
Dear Sir

I want to save the family relationship (My Name, my Father's Name, My grandfather's name, and father name of my grandfather).
(5 Levels)
So, I have a SQL table with these columns (ID, F_ID ,Name).

ID    F_ID     Name
1      0          John
2      1          John1
3      1          John2
....
...
...

Could you allow me to have a project in C# that shows this issue in RadDataGrid please?
I study the RadDataGrid hierarchial child rows, but I could not create a project.
Hossein
Top achievements
Rank 1
 asked on 13 Sep 2013
2 answers
203 views
Dear support,

I have the problem, that I want to set the instantitem height to the actualheight of the timeline.
The problem is that if the instantitem height extends the height of the 'normal' items, my timeline extends it's height -> can see it on the vertical scrollbar.
Is there a way to set the instant item height to the actual height of the timeline? 
The reason is that we want to see the instant items even when the user scrolls down.
I have attached an image with the desired behavior.

You can test the the bevavior with that small piece of code:

XAML
<Window
    x:Class="WpfApplication1.MainWindow"
    x:Name="Window"
    Title="MainWindow">
    <Window.Resources>
        <DataTemplate x:Key="InstantItemTemplate">
            <Rectangle Width="7" Height="{Binding ElementName=slider1, Path=Value}" Fill="Red" />
        </DataTemplate>
 
        <DataTemplate x:Key="ItemWithDurationTemplate">
                <Rectangle Margin="0, 0, 0, 5" Height="20" VerticalAlignment="Center" Fill="Green"/>
        </DataTemplate>
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <StackPanel DockPanel.Dock="Top">
            <StackPanel Orientation="Horizontal">
                <Slider Minimum="1" Maximum="1500" Value="{Binding ElementName=sliderTextBox, Path=Text, Mode=TwoWay}" TickFrequency="1" Name="slider1" Width="600" />
                <TextBox Name="sliderTextBox" Text="{Binding ElementName=slider1, Path=Value}" />
            </StackPanel>
            <TextBlock Text="{Binding ElementName=slider1, Path=Value}" FontSize="20" FontWeight="Bold" Height="25" HorizontalAlignment="Center" />
        </StackPanel>
        <telerik:RadTimeline x:Name="timeline"
                Margin="6"
                VerticalAlignment="Top"
                PeriodStart="2011/01/01" PeriodEnd="2011/06/01"
                VisiblePeriodStart="2011/01/01" VisiblePeriodEnd="2011/03/22"
                StartPath="Date"
                DurationPath="Duration"
                VerticalScrollBarVisibility="Auto"
                TimelineItemTemplate="{StaticResource ItemWithDurationTemplate}"
                TimelineInstantItemTemplate="{StaticResource InstantItemTemplate}">
            <telerik:RadTimeline.Intervals>
                <telerik:DayInterval />
                <telerik:WeekInterval />
                <telerik:MonthInterval />
                <telerik:YearInterval />
            </telerik:RadTimeline.Intervals>
        </telerik:RadTimeline>
    </DockPanel>
</Window>



CS
using System;
using System.Collections.Generic;
using System.Windows;
 
namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private List<Item> dataSource;
        private DateTime startDate;
 
        public MainWindow()
        {
            InitializeComponent();
 
            dataSource = new List<Item>();
            startDate = new DateTime(2011, 1, 1);
            var endDate = new DateTime(2011, 6, 1);
 
            Random r = new Random();
            for (DateTime i = startDate; i < endDate; i = i.AddMonths(1))
            {
                for (int j = 0; j < 20; j++)
                    dataSource.Add(new Item() { Date = i, Duration = TimeSpan.FromDays(r.Next(50, 100)) });
            }
            dataSource.Add(new Item() { Date = startDate.AddMonths(3).AddDays(15) });
            timeline.ItemsSource = dataSource;
            timeline.VisiblePeriodStart = startDate.AddDays(20);
            timeline.VisiblePeriodEnd = endDate.AddDays(-20);
        }
    }
 
    public class Item
    {
        public TimeSpan Duration { get; set; }
        public DateTime Date { get; set; }
    }
}




Regards,
Wolfgang
Wolfgang
Top achievements
Rank 1
 answered on 13 Sep 2013
1 answer
281 views
Hi,
I want to use a RowStyleSelector in a RadGridView to make rows Expandable or not depends on the value of a column of my ItemSource.
ItemSource is a Dataset that contains a DataTable (ID, Name, Type, SerialNumber, ...).
I need to make rows expandable if the Type ='Updated'.

My actual code (below) is not working:
 
<telerik:RadGridView.RowStyleSelector>
                          <telerik:ConditionalStyleSelector>
                                <telerik:StyleRule Condition="Type = Updated">
                                    <Style TargetType="rad:GridViewRow">
                                        <Setter  Property="IsExpandable" Value="False" />
                                    </Style>
                                </telerik:StyleRule>
                            </telerik:ConditionalStyleSelector>
                      </telerik:RadGridView.RowStyleSelector> 


Yoan
Telerik team
 answered on 13 Sep 2013
1 answer
286 views
I'm evaluating the PDF Viewer and it works great! However, when I try to use the code for the thumbnail demo as a starting point in my application I'm getting an exception. The code I'm using is that which you can copy and paste from the Telerik WPF Controls Examples application, where you can switch between Example and Code.

Is it possible to get the actual .csproj project for the PDF thumbnail viewer sample?

Thank you.
Petya
Telerik team
 answered on 13 Sep 2013
5 answers
237 views
Hi,

I'm interested to implement some sort of annotation tool using the WPF RadImageEditor as a basis. I'm glad there is already a Text Tool in the demo version. But there are a few things lacking which I would like to implement.

1) Currently seems that once a text object is created, it cannot be reselected and moved/edited. Is it possible to implement such that a previously created text object can still be selected upon clicking on it?

2) Are there any existing tool for drawing lines/arrows/borders? If not, do you have some sample code to create such tools? Would be good to have such features in an annotating software.

3) Does the ImageEditor have a panning feature? I.e. mouse click and hold and drag to pan the image? Any idea how to implement this?

Thanks for your help.
Iva Toteva
Telerik team
 answered on 13 Sep 2013
1 answer
123 views

Hi,
We noticed that the export to pdf function do not realy generate a good pdf files.

In fact we use the export function to generate pdf files, then these pdf files should be indexed to simplify our search function.

But when we try to index the pdf file generated by the RadDocument, we have an exception because the the pdf files is corrupted

and we try to open the file by Adobe Reader, it opened as modified file. 

Do you know how to prevent this issue? 
Kammen
Telerik team
 answered on 13 Sep 2013
4 answers
169 views
Hi,

  1. I installed a demo version from a website just to see what controls there are that I can use and it installs a clickonce app with version 2013.2.805.40
  2. I install an actual msi from file server which has a separate set of dlls with different version 2013.2.0724.45 (which is supposed to be used for development, not demo)
  3. Aparently there isn’t a proper 805 version of msi downloadable from the website
  4. When I try to compile my project that uses MSI version I constantly get this
    1. "Could not load file or assembly. Telerik.Windows.Controls, Versrion=2013.2.805.40, Culture=...."
    2. Which is saying that dll I have referenced needs version 805 instead of the one I have 724 even though I never installed 805 other than demo app
    3. There are no references to 805 anywhere in my project, why it wants to link to those dlls is beyond me...
  5. When I try to remove demo app (which is supposed to remove any trace of that 805 version), I get the same error
  6. When I try a different version msi installed after I blew 805 version (I think I tried 905) I get the same error. One would think that getting a fresh set of dlls without any remnants to 805 left in the system would fix, but no….

Your help is very much appreciated... I'm at a halt stop where I can't use any Telerik controls, and I don't know how to clean it up...
Petya
Telerik team
 answered on 13 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?