Telerik Forums
UI for WPF Forum
5 answers
135 views
Hey,

I'm creating a proof of concept to test the telerik calendar control. We designed a design for this control but we're having a problem with styling the DayButtonStyle.
We like to change the looks of the buttonchrome in this control because it looks awfull with our design. It is no problem to change this style but when we change the style and we are going to the next month, the days are not refreshing. The days are in the same place as the month before what isn't correct in this new month.

Is there something I am missing? Or is there a solution for this issue? There is not much to find about styling these buttons or issues with it.
Kalin
Telerik team
 answered on 01 Jul 2014
3 answers
353 views
Hi team,
I am currently using 2013.3.1204.40 version of Telerik.(MVVM, WPF application)

I have checkbox column and 5 text boxes in grid.
when the checkbox is checked, i want 3 textboxes in grid to be disabled.
when the checkbox is unchecked, i want 2 other textboxes in grid to be disabled.
 
Can you please help on how to achieve the above functionality.

Thanks,




Dimitrina
Telerik team
 answered on 01 Jul 2014
8 answers
405 views
Hi guys n gals,

I have noticed that if I use SetColumnError on a DataTable with a GridView bound to it (WPF, MVVM) then I don't see the error inidcator appear on the GridView.

Is this intentional?  If so, I find the GridView to be missing some be pretty basic functionality...
Dimitrina
Telerik team
 answered on 01 Jul 2014
1 answer
139 views
Hello,
I have a WPF .NET/4.0 application using RadTileView v4.0.30319.
I want to know how to implement a one click (rather than have the default double-click) open a tile?
Thx
Chris
Milena
Telerik team
 answered on 01 Jul 2014
2 answers
211 views
  •  Hi,,
    Am Using MVVM  ,
    Is It Possible to bind Selected Appointment  from Schedulview to local Variable.

    I try the Following Code ,

    in xaml
     <telerik:RadScheduleView
    Grid.Row="1"
    Name="xRadScheduleView"
    SelectedAppointments="{Binding MyAppointments}" >


    in ViewModel

    private Appointment _MyAppointments;
    publicAppointment  MyAppointments
    {    get { return _MyAppointments; } 
       set    {  if (value  ==  _MyAppointments)
                     return;
         _MyAppointments =value;   
    on propertychanged("MyAppointments");
     }}

    dim DateFrom as datetime= MyAppointments.start();
    dim DateTo as datetime= MyAppointments.End();









Kalin
Telerik team
 answered on 01 Jul 2014
3 answers
223 views
I have a chart which implements a Logarithmic Scale for the Y-Axis as described here:
http://www.telerik.com/help/wpf/radchart-features-axes-logarithmic-scale.html

I some cases, when the IsLogarithmic Property is toggled for Line Series types, the Point Marks become skewed.  The lines themselves seem to be plotted correctly, but the Point Marks will appear in their old positions.  This behavior only occurs for only certain data sets.

Below is an example which demonstrates the problem.

XAML:
<Window x:Class="LogarithmicScale.MainWindow"
        xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
        xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"            
        xmlns:example="clr-namespace:Telerik.Windows.Examples.Chart.LogarithmicScale"
        Title="MainWindow" Height="700" Width="900" WindowStartupLocation="CenterScreen">
 
    <Window.DataContext>
        <example:ExampleViewModel />
    </Window.DataContext>
 
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
 
        <CheckBox x:Name="ToggleLogModeCheckBox" Content="Use Logarithmic Y-Axis"
                  IsChecked="False" Margin="6" Grid.Row="0"
                  Checked="ToggleLogModeCheckBox_Checked"
                  Unchecked="ToggleLogModeCheckBox_Checked" />
 
        <telerikChart:RadChart x:Name="RadChart1" Grid.Row="1" ItemsSource="{Binding Data}">
            <telerikChart:RadChart.DefaultView>
                <telerikCharting:ChartDefaultView>
                    <telerikCharting:ChartDefaultView.ChartArea>
                        <telerikCharting:ChartArea LegendName="PrimaryLegend">
                            <telerikCharting:ChartArea.AxisX>
                                <telerikCharting:AxisX/>
                            </telerikCharting:ChartArea.AxisX>
                            <telerikCharting:ChartArea.AxisY>
                                <telerikCharting:AxisY x:Name="LogAxis"
                                         IsLogarithmic="False"
                                         Title="Total population" />
                            </telerikCharting:ChartArea.AxisY>
                        </telerikCharting:ChartArea>
                    </telerikCharting:ChartDefaultView.ChartArea>
                    <telerikCharting:ChartDefaultView.ChartLegend>
                        <telerikCharting:ChartLegend x:Name="PrimaryLegend"/>
                    </telerikCharting:ChartDefaultView.ChartLegend>
                </telerikCharting:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>
            <telerikChart:RadChart.SeriesMappings>
                <telerikCharting:SeriesMapping CollectionIndex="0">
                    <telerikCharting:SeriesMapping.SeriesDefinition>
                        <telerikCharting:LineSeriesDefinition ShowItemLabels="False" />
                    </telerikCharting:SeriesMapping.SeriesDefinition>
                    <telerikCharting:SeriesMapping.ItemMappings>
                        <telerikCharting:ItemMapping FieldName="Population"
                                      DataPointMember="YValue" />
                        <telerikCharting:ItemMapping FieldName="Time"
                                      DataPointMember="XValue" />
                    </telerikCharting:SeriesMapping.ItemMappings>
                </telerikCharting:SeriesMapping>
                <telerikCharting:SeriesMapping CollectionIndex="1">
                    <telerikCharting:SeriesMapping.SeriesDefinition>
                        <telerikCharting:LineSeriesDefinition ShowItemLabels="False" />
                    </telerikCharting:SeriesMapping.SeriesDefinition>
                    <telerikCharting:SeriesMapping.ItemMappings>
                        <telerikCharting:ItemMapping FieldName="Population"
                                      DataPointMember="YValue" />
                        <telerikCharting:ItemMapping FieldName="Time"
                                      DataPointMember="XValue" />
                    </telerikCharting:SeriesMapping.ItemMappings>
                </telerikCharting:SeriesMapping>
            </telerikChart:RadChart.SeriesMappings>
        </telerikChart:RadChart>
    </Grid>
</Window>


Code Behind:
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 LogarithmicScale
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
private void ToggleLogModeCheckBox_Checked(object sender, RoutedEventArgs e)
{
  if (this.RadChart1 != null)
  RadChart1.DefaultView.ChartArea.AxisY.IsLogarithmic = (bool)((CheckBox)sender).IsChecked;
}
 
}
}

View Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
 
namespace Telerik.Windows.Examples.Chart.LogarithmicScale
{
    public class ExampleViewModel : ViewModelBase
    {
        private List<List<Stats>> data;
        public List<List<Stats>> Data
        {
            get
            {
                return this.data;
            }
            set
            {
                if (this.data != value)
                {
                    this.data = value;
                    this.NotifyPropertyChanged("Data");
                }
            }
        }
 
        public ExampleViewModel()
        {
            List<Stats> list0 = new List<Stats>();
            List<Stats> list1 = new List<Stats>();
            List<List<Stats>> listindex = new List<List<Stats>>();
 
            for (int i = 0; i <= 1000; i++)
                list0.Add(new Stats(i, 1 * i));
 
            for (int i = 0; i <= 1000; i++)
                list1.Add(new Stats(i, i * 10));
 
            listindex.Add(list0);
            listindex.Add(list1);
 
            this.Data = listindex;
        }
    }
 
    public class ViewModelBase : INotifyPropertyChanged, INotifyPropertyChanging
    {
        public event PropertyChangedEventHandler PropertyChanged;
        public event PropertyChangingEventHandler PropertyChanging;
 
        protected void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
 
        protected void NotifyPropertyChanging(String info)
        {
            if (PropertyChanging != null)
            {
                PropertyChanging(this, new PropertyChangingEventArgs(info));
            }
        }
    }
}


Model:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Telerik.Windows.Examples.Chart.LogarithmicScale
{
    public class Stats
    {
        private int _time;
        public int Time
        {
            get
            {
                return this._time;
            }
            set
            {
                this._time = value;   
            }
        }
 
        private int _population;
        public int Population
        {
            get
            {
                return this._population;
            }
            set
            {
                this._population = value;   
            }
        }
 
        public Stats(int time, int population)
        {
            this.Time = time;
            this.Population = population;
        }
    }
}


Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2014
1 answer
142 views
Hi team,

I've got a problem with the PersistanceManager. I'm using the routines from the demo for saving and loading the layout of the gridview. The data is saved in the isolated storarge. My gridview contains a GridViewToggleRowDetailsColumn.

When I start the application, don't change the layout, save the layout, restart the application and load the layout from the isolated storage the displayindex is deferred. When I remove the GridViewToggleRowDetailsColumn, save and load works fine.

<telerik:GridViewToggleRowDetailsColumn Header="+" HeaderTextAlignment="Center" x:Name="MainToggleColumn"/>

Please take a look at the attached screenshots. The first one (hc_110.jpg) displays the layout before saving. The second one (hc_111.jpg) displays the layout after restarting the application and loading the layout.

Do you have an idea how to find a solution for this?


Best regards


Yoan
Telerik team
 answered on 30 Jun 2014
2 answers
226 views
Hit Telerik,

I have just updated to the latest version of Telerik(from q2 2013 to q2 2014).

But i have a problem with the RadMaskedTextBox. 

All other Telerik controls can be found in the telerik dll's except RadMaskedTextBox. See attached image.

Has RadMaskedTextBox must have been removed???

Best regards,
Jeppe
Unisense
Top achievements
Rank 1
 answered on 30 Jun 2014
1 answer
107 views
Hi,

I am use Q1 telerik for 2014 SP1

Title2,3 - Mouse Drag : OK
Title1 - Mouse Drag : Crash...

<Xaml Source>
​<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="525">
    <Grid>
        <Grid.RowDefinitions>            
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>       
        <telerik:RadDocking x:Name="radDocking" Grid.Row="1">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Title="Title1">
                            <telerik:RadDocumentPane.Content>
                                <telerik:RadDocking>
                                    <telerik:RadDocking.DocumentHost>
                                        <telerik:RadSplitContainer>
                                            <telerik:RadPaneGroup>
                                                <telerik:RadDocumentPane Title="Title2">
                                                    <telerik:RadDocumentPane.Content>
                                                        <telerik:RadDocking>
                                                            <telerik:RadDocking.DocumentHost>
                                                                <telerik:RadSplitContainer>
                                                                    <telerik:RadPaneGroup>
                                                                        <telerik:RadDocumentPane Title="Title3">
                                                                            <telerik:RadDocumentPane.Content>
                                                                                <TextBlock Text="a" />
                                                                            </telerik:RadDocumentPane.Content>
                                                                        </telerik:RadDocumentPane>
                                                                    </telerik:RadPaneGroup>
                                                                </telerik:RadSplitContainer>
                                                            </telerik:RadDocking.DocumentHost>
                                                        </telerik:RadDocking>
                                                    </telerik:RadDocumentPane.Content>
                                                </telerik:RadDocumentPane>
                                            </telerik:RadPaneGroup>
                                        </telerik:RadSplitContainer>
                                    </telerik:RadDocking.DocumentHost>
                                 </telerik:RadDocking>
                            </telerik:RadDocumentPane.Content>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>           
        </telerik:RadDocking>

    </Grid>
</Window>
George
Telerik team
 answered on 30 Jun 2014
1 answer
342 views
I would like a side panel to expand the window size like the behaviour in this code:

<Window x:Class="WpfApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" SizeToContent="WidthAndHeight">
    <DockPanel Height="300">
        <CheckBox x:Name="checkbox" Width="200" IsChecked="True" />
        <Grid Width="200" Background="Blue">
            <Grid.Style>
                <Style TargetType="{x:Type Grid}">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding ElementName=checkbox, Path=IsChecked}" Value="True">
                            <Setter Property="Visibility" Value="Visible" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding ElementName=checkbox, Path=IsChecked}" Value="False">
                            <Setter Property="Visibility" Value="Collapsed" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Grid.Style>
        </Grid>
    </DockPanel>
</Window>

The RadWindow does not seem to resize itself, even when setting SizeToContent="True". Is it possible to do this with RadWindow?

Kalin
Telerik team
 answered on 30 Jun 2014
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?