Telerik Forums
UI for WPF Forum
1 answer
84 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
237 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
236 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
91 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
260 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
243 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
200 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
169 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
386 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
1 answer
132 views
I am using the RadPivotGrid with a SQL Server Analysis server (2014) and all appears to work as expected. However one issue I noticed is that any fields I select to appear as "values" - i.e. the 'facts' - I do not get the option to set the number format. For example when I select a field from a PivotFieldList that is bound to a collection I get the options Sum, Count, Average, Number format etc when I click on the down arrow of any fields in the "Values" section of the field List,

However when I select a field from a field list that uses a SQL Server Analysis Cube as the data source I only get the options Index, % of Grand Total, More Calculations and clear calculations. There is no option to set the number format - how do I achieve this?  - thanks
Rosen Vladimirov
Telerik team
 answered on 10 Jul 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?