Telerik Forums
UI for WPF Forum
1 answer
119 views
Hello, I am using RadTimePicker  for selecting time and on click of a button adding the selected time to a ListView. When I select a time say 13:00:00 and click on add button, it gets added.
 But when I select a time say 13:00:00 and edit it as say 13:10:00 and then click on add button it does not get added This issue I get only while using version Q2 2014. While the same control from Q3 2013 version works fine. I see that when I select a time and I edit it and then Click on the add Button, the Time value is not getting bound to the property AtTime in ViewModel. XAML :
 < telerik:RadTimePicker x:Uid="uxAtTimePicker" x:Name="uxAtTimePicker" Width="203" VerticalAlignment="Center" SelectedTime="{Binding AtTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> ViewModel: public TimeSpan? AtTime
 {
 get
 {
 return theAtTime;
 }
 set
 {
 theAtTime = value;
 base.OnPropertyChanged("AtTime");
 }
 } Please help me out with a solution. Thanks,
 Best Regards,
 Santhosh B
Kalin
Telerik team
 answered on 11 Jul 2014
1 answer
62 views
Hello,

I am using RadTimePicker  for selecting time and on click of a button adding the selected time to a ListView.

When I select a time say 13:00:00 and click on add button, it gets added.
But when I select a time say 13:00:00 and edit it as say 13:10:00 and then click on add button it does not get added

This issue I get only while using version Q2 2014.

While the same control from Q3 2013 version works fine.

I see that when I select a time and I edit it and then Click on the add Button, the Time value is not getting bound to the property AtTime in ViewModel.

XAML :
< telerik:RadTimePicker x:Uid="uxAtTimePicker" x:Name="uxAtTimePicker" Width="203" VerticalAlignment="Center" SelectedTime="{Binding AtTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">

ViewModel:

public TimeSpan? AtTime
{
get
{
return theAtTime;
}
set
{
theAtTime = value;
base.OnPropertyChanged("AtTime");
}
}

Please help me out with a solution.

Thanks,
Best Regards,
Santhosh B
Kalin
Telerik team
 answered on 11 Jul 2014
1 answer
210 views
Hello

I need to add appointments in a few locationRessources with code behind. I can build and run my project but the appointments don't appear in the RadScheduleView.

Here is my xaml code:
<Window x:Class="TelerikWpfApp1.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>
            <telerik:RadScheduleView HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Name="xRadScheduleView">
                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:DayViewDefinition Orientation="Horizontal" DayStartTime="7:00" DayEndTime="21:00"/>
                    <telerik:WeekViewDefinition/>
                    <telerik:MonthViewDefinition/>
                    <telerik:TimelineViewDefinition/>
                </telerik:RadScheduleView.ViewDefinitions>
            
        </telerik:RadScheduleView>
 
    </Grid>
</Window>

Here is my code behind:
void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ResourceType locationResource = new ResourceType("BlocsOperatoires");
            locationResource.Resources.Add(new Resource("Bloc 1"));
            locationResource.Resources.Add(new Resource("Bloc 2"));
            locationResource.Resources.Add(new Resource("Bloc 3"));
            locationResource.Resources.Add(new Resource("Bloc 4"));
            locationResource.Resources.Add(new Resource("Bloc 5"));
            this.xRadScheduleView.ResourceTypesSource = new ResourceTypeCollection
            {
                locationResource
            };
 
            GroupDescriptionCollection groupDescription = new GroupDescriptionCollection
            {
                new DateGroupDescription(),
                new ResourceGroupDescription{ ResourceType = "BlocsOperatoires" }               
            };
            this.xRadScheduleView.GroupDescriptionsSource = groupDescription;
 
            var appointments = new ObservableCollection<Appointment>();
            appointments.Add(new Appointment()
                        {
                            Subject = "I'm a new Appointment",
                            Start = new DateTime(2014, 7, 8, 8, 30, 00),
                            End = new DateTime(2014, 7, 8, 10, 30, 00),
                            Location = locationResource.Resources.ElementAt(1).ResourceName
                        });
            appointments.Add(new Appointment()
            {
                Subject = "I'm a new Appointment 2",
                Start = new DateTime(2014, 7, 8, 8, 30, 00),
                End = new DateTime(2014, 7, 8, 10, 30, 00),
                Location = locationResource.Resources.ElementAt(3).ResourceName
            });
            xRadScheduleView.AppointmentsSource = appointments; 
        }


Can you explain to me what am i missing ?

thanx !
Kalin
Telerik team
 answered on 11 Jul 2014
2 answers
207 views
I Have an Organization chart which i want to look exactly like the file I've attached (this is telerik's doc figure).

What I see is a route started from bottom of parent shape to top of child shape as I've marked with TipOverTree.

What I Want is a route Started from bottom of parent to Left of child, as i marked with What I WANT.

Could anyone help me?
Thank you
Petar Mladenov
Telerik team
 answered on 11 Jul 2014
2 answers
76 views
I have server side business logic validation that throws an exception when validation rules fail. How do I catch this on the client side?

This is using a RadGridView with a QueryableDataServiceCollectionView data source in an MVVM application. I can see the error message formatted into XML inside the resulting clientside AggregateException, but this exception occurs inside a Telerik DLL and I don't see how/where to catch and handle it.

Thanks.
Greg
Top achievements
Rank 1
 answered on 10 Jul 2014
2 answers
232 views

For my GanttView, I'm having an issue where the GanttView is defaulting to the MaxHeight property ( which I set through XAML to 700).
But for some datasets, this leaves a bunch of wasted, white space under the last node.

How do I get it such that the height of the GanttView is what is necessary up to a maximum of 700?
Polya
Telerik team
 answered on 10 Jul 2014
14 answers
213 views
Hi,

I use RichTextBox print method. but i want to print without user interaction. can I cancel PrintDialog pop up window?

thanks, harri.
Petya
Telerik team
 answered on 10 Jul 2014
3 answers
162 views
Hi,

I used a TimePicker in RadGridView as editor control,

var culture = new CultureInfo("en-US") {DateTimeFormat = {ShortTimePattern = "HH:mm"}};
BindingTarget = RadDateTimePicker.SelectedTimeProperty;
return new RadDateTimePicker { SelectedTime = (TimeSpan)viewItemHolder[feature], InputMode = InputMode.TimePicker, TimeInterval = TimeSpan.FromMinutes(15), Culture = culture };

It seems if I select an item in its dropdown list via mouse clicking, it will lost focus and cause the editing row to commit immediately. If I select the item using keyboard (hitting enter), the TimePicker seems stay in focus.

I didn't notice this problem with RadDatePicker or RadDateTimePicker . Any idea what might go wrong here?
Kalin
Telerik team
 answered on 10 Jul 2014
11 answers
151 views
Hi,

I am building a cube/analytics viewer for a client and the RadPivotGrid and RadPivotFieldList combination works really well until we try to swap the connection string and point the RadPivotFieldList  control at the new cube.

However when we change the cube in the connection string the RadPivotGrid reloads with the new report, however the  RadPivotFieldList does not refresh it's field list, so we are stuck with the same fields as the first cube.
Both cubes work as we can load either of them first, just never change it.

I am doing this in codebehind and viewmodel (long story) and storing the serialised data provider in SQL, (this all works beautifully).

My latest code looks like this;

private Telerik.Pivot.Adomd.AdomdDataProvider _provider { get; set; }


 var x = _viewModel.DataProvider;
_provider = new AdomdDataProvider();
_provider = (Telerik.Pivot.Adomd.AdomdDataProvider)x;

var url = _viewModel.Analytics.GetOrDefault("AnalyticsURL");
var database = _viewModel.SelectedCube.Catalog;  
var cube = _viewModel.SelectedCube.Cube;  

var ConnectionSettings = new Telerik.Pivot.Adomd.AdomdConnectionSettings()
{
    Cube = cube,
    Database = database,                   
    ConnectionString = String.Format("Data Source={0}", url)
};
_provider.ConnectionSettings = ConnectionSettings;
 
_provider.BeginInit();
 
radPivotGrid.DataProvider = _provider;
radPivotFieldList.DataProvider = _provider;

_provider.EndInit();


The 'Cube' is the only bit that changes in the connection string.
I have looked online and cannot find any links to switching the cube at runtime, is there anyway to do this?

thanks for the help.
craig
Rosen Vladimirov
Telerik team
 answered on 10 Jul 2014
23 answers
359 views
I'm trying to add floating panes on event. I modified <DockingAndMVVM.zip> published on another forum discussion.
Want to add pane to PaneCollectionFloat on command/event. This works only if PaneCollectionFloat collection is not empty on start og application. Can you suggest any solution for this problem ?

   <telerik:RadDocking Grid.Row="1">
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="group"
                        local:PaneGroupExtensions.ItemsSource="{Binding PaneCollectionLeft}"
                        local:PaneGroupExtensions.ItemTitleDisplayMemberPath="Header">
                    <local:PaneGroupExtensions.ItemContentTemplate>
                        <DataTemplate>
                            <Button Content="{Binding Content.SomeContent}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemContentTemplate>
                    <local:PaneGroupExtensions.ItemHeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Header}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemHeaderTemplate>


                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            <telerik:RadSplitContainer InitialPosition="FloatingDockable">
                <telerik:RadPaneGroup 
                        local:PaneGroupExtensions.ItemsSource="{Binding PaneCollectionFloat}"
                        local:PaneGroupExtensions.ItemTitleDisplayMemberPath="Header">
                    <local:PaneGroupExtensions.ItemContentTemplate>
                        <DataTemplate>
                            <Button Content="{Binding Content.SomeContent}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemContentTemplate>
                    <local:PaneGroupExtensions.ItemHeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Header}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemHeaderTemplate>


                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
Nick
Telerik team
 answered on 10 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?