Telerik Forums
UI for WPF Forum
1 answer
48 views
I have a WPF view that have 5 calendar controls on it.  When the view is first loaded all of the dates are grey in color, but when the mouse hovers over each date they switch to black.  When navigating months all of the dates turn black and everything is fine at that point, it is just that inital load that is an issue?  is there a default setting or a way to set that style so they start out black to begin with, not just on mouse over?
Kalin
Telerik team
 answered on 26 Jun 2013
1 answer
137 views
Hi - I'm not sure where to post this, if this isn't the right place please let me know.

We have an application using WPF/RIA services and an MVVM framework.  We called stored procedures in SQL to get data through our model.

I've found an issue that I can't explain and so don't know how to fix.  What we are seeing is that the results being returned by our stored procedures when I run them directly in SQL Server Management Studio don't match what I see in the application.  In this case, we are displaying the data in aRadGridView, but I can look at the data when it is returned in the context and it's wrong there too. 

The problem is that not all the records I expect to see are there.  For example, in one case my stored procedure run directly from SMS returns 251 rows, the grid in our app is displaying 20 of them, and I see those 20 rows in the results when I look running in Debug.

Are there settings that limit the amount of rows that are returned?  In some cases, there are a lot of rows, but what we've found in the past is that the app times out.  I'm not sure where else to look.

Any help would be appreciated!

Lisa
Yana
Telerik team
 answered on 26 Jun 2013
2 answers
265 views
Since I don't see any complaints about this feature, I assume that there is something fundamental not mentioned in any documentation or video that somehow activates this functionality, because following the video and online documentation (i.e. the vary basic examples) I NEVER see the parent child setup (expanders and indentation). Any push in the right direction or information about the latest on where the development of the WPF version of this control is would be greatly appreciated. So far, it seems unusable, but I cannot believe that since this control is in released status for WPF; listed as new. First tried it in our application, but then thought the complexities were causing issues. But now I see that the basic application in its own WPF window/project/solution fails as well.

This was built with the just downloaded Q2 2013 6/11 version. No change from Q3 2012 1017 internal build that we were running.

Very frustrating.

<Window x:Class="GanttChart.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadGanttView Margin="0" Name="radGanttView1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <telerik:RadGanttView.Columns>
                <telerik:ColumnDefinition ColumnWidth="175" Header="Title" MemberBinding="{Binding Title}" />
                <telerik:ColumnDefinition ColumnWidth="175" Header="End"  MemberBinding="{Binding Start}"/>
                <telerik:ColumnDefinition ColumnWidth="175" Header="Start"  MemberBinding="{Binding End}"/>
            </telerik:RadGanttView.Columns>
        </telerik:RadGanttView>
    </Grid>
</Window>
 
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
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.GanttView;
using Telerik.Windows.Controls.Scheduling;
 
namespace GanttChart
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            var d = new DateTime(2012, 3, 1);
            radGanttView1.VisibleRange = new VisibleRange(d, d.AddMonths(2));
            var tasks = new ObservableCollection<GanttTask>();
            for (int i = 0; i < 4; i++)
            {
                var gt = new GanttTask(
                              d.AddDays(14 * i),
                              d.AddDays(14 * i + 14),
                             "Title " + i.ToString());
                for (int j = 0; j < gt.Duration.Days; j++)
                {
                    var childGT = new GanttTask();
                    childGT.Start = gt.Start.AddDays(j);
                    childGT.End = childGT.Start.AddHours(23);
                    childGT.Title = "Child " + i.ToString() + "/" + j.ToString();
                    gt.Children.Add(childGT);
 
                }
                tasks.Add(gt);
            }
            radGanttView1.TasksSource = tasks;
            radGanttView1.PixelLength = new TimeSpan(0, 1, 0, 0);
        }
    }
}
Matt
Top achievements
Rank 2
 answered on 26 Jun 2013
3 answers
254 views
first 
Hello...
Im using two radtabcontrols..
itemssource ,DisplayMemberPath, ContentTemplate is working but selectedIndex is not working
I tried manything but that was not working...
please help me...

here is my source..
selectedIndex In stroyActtemplate is not working...

<
Grid>
        <Grid.Resources>
            <DataTemplate x:Key="StoryChapterTemplate">
                <TextBlock Text="{Binding Name}" />
            </DataTemplate>
            <DataTemplate x:Key="StoryActTemplate">
                <telerik:RadTabControl ItemsSource="{Binding TempSubList}" DisplayMemberPath="Name" ContentTemplate="{StaticResource StoryChapterTemplate}" SelectedIndex="{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" />
            </DataTemplate>
        </Grid.Resources>
        <telerik:RadTabControl x:Name="tabControl" ItemsSource="{Binding TempSubList}" DisplayMemberPath="Name" ContentTemplate="{StaticResource StoryActTemplate}" SelectedIndex="{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" />
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Click="Button_Click">A</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="40,0" Click="Button_Click_1">B</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Right" Click="Button_Click_2">C</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="40,0" Click="Button_Click_3">D</Button>
</Grid>
Petar Mladenov
Telerik team
 answered on 26 Jun 2013
1 answer
122 views
Hi,
I have been trying to achieve this without any luck. I would like to style the whole header with the arrow/expander icon.
How can I achieve this ?

Best regards
kristján
Kristjan Einarsson
Top achievements
Rank 1
 answered on 26 Jun 2013
5 answers
207 views
Hi Telerik support team,

I am trying to set margin between headers in RadDocking control, I tried to create a style that target PaneHeader but nothing happened.
I also, tried to override the HeaderTemplate of RadPane but also not worked.

Please show me the easiest way to do that.

Thanks,
Akram

Masha
Telerik team
 answered on 26 Jun 2013
2 answers
214 views
I have read that after inserting a new row in edit mode, it takes two Escape presses to allow the row to be deleted.  Why does it take two presses, what is the underlying functionality that requires this, and is there a way to configure it so the user only has to press once?

Thanks in advance,
Steve
Steve
Top achievements
Rank 1
 answered on 25 Jun 2013
1 answer
95 views
Hello,

PLEASE SOMEONE ANSWER THIS ASAP.

I bind a GridViewComboBoxColumn to a list of objects, now problem at all with anything there including setting to currently selected value.
I need to give the user the option of selecting blank item as that field can be empty. Need to put a blank item into the GridViewComboBoxColumn at the top of the list.

HOW CAN I DO THAT? Standard combobox is easy and I don't want to use those in a CellEditTemplate either as using that will change the ViewModel(s) and bindings quite a bit.

Thanks
Ivan Ivanov
Telerik team
 answered on 25 Jun 2013
5 answers
234 views
Hi all

I have a custom appointment, of which I am modifying both Start and End programmatically if a command is fired. The problem is that setting those properties doesn't result in the UI being updated: The appointment still shows the old start / end boundaries until I change the view. For now, I employed a dirty hack by removing and reinserting the modified item, but this is obviously a horrible workaround.

Thanks for your advice
Philipp

Here's my code:


public class CalendarItemViewModel : AppointmentBase
{
    public LaborTrackingSession Model { get; private set; }
 
    public override DateTime Start
    {
        get { return Model.StartTime.DateTime; }
        set
        {
            Model.StartTime = value;
            OnPropertyChanged(() => Start);
        }
    }
 
    public override DateTime End
    {
        get { return Model.EndTime.HasValue ? Model.EndTime.Value.DateTime : SystemTime.Now().DateTime; }
        set
        {
            Model.EndTime = value;
            OnPropertyChanged(() => End);
        }
    }
     
    ...
}

										
George
Telerik team
 answered on 25 Jun 2013
0 answers
140 views
I am using a RadGridView, which has a column whose data template is a RadDateTimePicker. The value for this column is data bound (MVVM) to a nullable date time property. So when I create a new row, the initial value is null and then the user will set the value for the date time using the picker (See xaml code below).

Now, I am setting the SelectableStartDate property for the picker to tomorrow since i do no want the user to be able to select a date as today or in the past. Assuming I just added a new row with a null/empty date time value and just clicked on the cell to open the date time picker, if I select the time first and not the date, it is firing the binding with the date as today's date with the selected time, even though the Selectable date is set to start from tomorrow. I tried using some properties on the picker itself to try and change that but could not make it work. 

Any suggestions on this? 

<telerik:GridViewDataColumn Header="Start Date"
                                Width="135"
                                Name="StartDateColumn"
                                EditTriggers="CurrentCellClick"
                                DataFormatString="{}{0:M/d/yyyy hh:mm tt}"
                                CellStyleSelector="{StaticResource startDateCellStyleSelector}"
                                DataMemberBinding="{Binding StartDate}">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <telerik:RadDateTimePicker SelectableDateStart="{Binding SelectableStartDate}" SelectedValue="{Binding StartDate, Mode=TwoWay}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
     
    <telerik:GridViewDataColumn.HeaderCellStyle>
        <Style TargetType="telerik:GridViewHeaderCell">
            <Setter Property="Background" Value="#437F7B"/>
            <Setter Property="Foreground" Value="White"/>
        </Style>
    </telerik:GridViewDataColumn.HeaderCellStyle>
 
</telerik:GridViewDataColumn>
Rahul
Top achievements
Rank 1
 asked on 25 Jun 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?