#region Deklarationenprivate ObservableCollection<RWF_GUI_TransferItems> _Items;/// <summary>/// Enthält alle Elemente die in dem GridView dargestellt werden./// </summary>public ObservableCollection<RWF_GUI_TransferItems> Items{ get { return _Items; } set { _Items = value; this.ValueChanged("Items"); }}private ICollectionView _ItemsView;/// <summary>/// View zur Überwachtung des aktuellen Grid-Items/// </summary>public ICollectionView ItemsView{ get { return _ItemsView; } set { _ItemsView = value; this.ValueChanged("ItemsView"); }}private RWF_GUI_TransferItems _AktuelleGridAuswahl;/// <summary>/// Aktuelle Gridzeile/// </summary>public RWF_GUI_TransferItems AktuelleGridAuswahl{ get { return _AktuelleGridAuswahl; } set { _AktuelleGridAuswahl = value; this.ValueChanged("AktuelleGridAuswahl"); }}public MainViewModel(){ this.Items = new ObservableCollection<RWF_GUI_TransferItems>(); this.ItemsView = CollectionViewSource.GetDefaultView(this.Items); this.ItemsView.CurrentChanged += new EventHandler(OnCurrentItemChanged);}void OnCurrentItemChanged(object sender, EventArgs e){ this.AktuelleGridAuswahl = (RWF_GUI_TransferItems)this.ItemsView.CurrentItem;}<telerik:RadGridView ItemsSource="{Binding ItemsView}" RowHeight="25" CanUserFreezeColumns="False" AutoGenerateColumns="False" ShowColumnFooters="true" x:Name="GridViewMain" IsSynchronizedWithCurrentItem="True" IsEnabled="{Binding AtWork, Converter={StaticResource NegateBoolConverter}}">OnCurrentItemChanged-Event is only being raised on startup (this.ItemsView.CurrentItem is null at this moment).<telerik:RadGridView Grid.Column="0" Grid.Row="0" Width="1324" HorizontalAlignment="Left" Name="grvRetScheduleTerms" VerticalAlignment="Top" AutoGenerateColumns="False" ActionOnLostFocus="None" CanUserFreezeColumns="False" SelectionUnit="FullRow" SelectionMode="Single" IsSynchronizedWithCurrentItem="True" CanUserDeleteRows="True" IsReadOnly="False" CanUserSelect="True" CanUserInsertRows="False" FontSize="16" AddingNewDataItem="grvRetScheduleTypes_AddingNewDataItem" RowEditEnded="grvRetScheduleTypes_RowEditEnded"> <telerik:RadGridView x:Name="RadGridView1" ShowGroupFooters="True" AutoGenerateColumns="False" > <telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="Name"> <telerik:GroupDescriptor.AggregateFunctions> <telerik:CountFunction /> </telerik:GroupDescriptor.AggregateFunctions> </telerik:GroupDescriptor> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" > <telerik:GridViewDataColumn.AggregateFunctions> <telerik:CountFunction Caption="count:" /> </telerik:GridViewDataColumn.AggregateFunctions> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> </telerik:RadGridView><TelerikControls:RadGridView Name="grid" SelectionMode="Multiple" IsReadOnly="True"> <TelerikControls:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="Id" SortDirection="Ascending"> <telerik:GroupDescriptor.AggregateFunctions> <telerik:CountFunction Caption="Models: " /> <telerik:SumFunction Caption="Reslts: " SourceField="ResultCount" /> </telerik:GroupDescriptor.AggregateFunctions> </telerik:GroupDescriptor> </TelerikControls:RadGridView.GroupDescriptors></TelerikControls:RadGridView>private ObservableCollection<TreeViewItems> items;public ObservableCollection<TreeViewItems> Items{ get { return items; } set { items = value; OnPropertyChanged("Items"); }}private string currentPath = "";public string CurrentPath{ get { return currentPath; } set { currentPath = value; OnPropertyChanged("CurrentPath"); }}internal void OnSelectedMenuChanged(TreeViewItems tvi) { ...some code... this.R = Util.CreateTreeView(); //returns an observable collection similar to the sample implementation this.CurrentPath = sb.ToString(); }<telerik:RadBreadcrumb x:Name="explorerBreadcrumb" Path="{Binding CurrentPath}" Header="{Binding R[0]}" HeaderMemberPath="CategoryName" HierarchicalItemsSource="SubCategories" HierarchicalMemberPath="CategoryName" ItemsSource="{Binding R[0].SubCategories}" TextModePath="CategoryName" />// pop-up window.
var toolWindow = VisualUtils.FindParentOfType<ToolWindow>(sender as DependencyObject);toolWindow.VerticalOffset = VerticalOffset; toolWindow.HorizontalOffset = HorisontalOffset; toolWindow.Width = PopupWidth;-toolWindow is null.1) I assume that now I have to use RadPaneGroup (as container for floating windows ??) instead of ToolWindow. If so, than provide me please wich proeprties or whatever I have to use to have the oldest behaviour of my float windows (popups). 2) When I use RadPaneGroup it works but the popup is not appears like previousely, it is pinned. The method MakeFloatingOnly() doesnt works for us anymore. Need your help ASAP. ---Julian-the properties VerticalOffset and HorisontalOffset doesn't exists anymore in class ToolWindow.
I’m using the RadDateTimePicker control is a WPF application and it’s behaving very oddly.
Here’s the XAML for the control:
<UserControl x:Class="CarSystem.CustomControls.HotListEdit"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:cs="clr-namespace:CarSystem.CustomControls"xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"mc:Ignorable="d"DataContext="{Binding HotListEntry, Mode=TwoWay, RelativeSource={RelativeSource Self}}"Height="600"Width="1122">
. . .<telerik:RadDateTimePicker CurrentDateTimeText="{Binding Path=EndDate, Mode=TwoWay}"
FontSize="18"
FontWeight="Bold"
Margin="1"
x:Name="EndDateBox"
Template="{DynamicResource RadDateTimePickerControlTemplate1}"VerticalAlignment="Top" />
. . .
</UserControl>
As you can see, I’ve bound the CurrentDateTimeText property of the control to a DateTime property of an object that is bound to the UserControl’s
DataContext property.
When I run this program and load an object into the HotListEntry property of the UserControl, the value of the EndDate DateTime property is displayed above the actual date time control, not in it. Further, if you switch away from the application and come back to it, the extra box containing the EndDate disappears.
I have removed the Template attribute from the XAML for the control and that did not make any difference to the position of the date time on screen. The interesting thing is that if you use the picker, the extra date-time appears after you set the date to its new value, AND the date you pick appears inside the control.
I’m using the Q2 2011 build of the library. Is this issue some kind of template problem or is it a bug? Will you be fixing this soon? We need this working ASAP.
Thank you
Tony