<GroupBox Name="gbAccountManagment" Margin="2,2,2,2" MaxHeight="580" Height="480" VerticalAlignment="Top" > |
<GroupBox.Header> |
<Grid> |
<Grid.ColumnDefinitions> |
<ColumnDefinition></ColumnDefinition> |
<ColumnDefinition></ColumnDefinition> |
</Grid.ColumnDefinitions> |
<Button Grid.Column="0" Name="btnAccountManagmentPlus" Visibility="Hidden" Width="20" Click="btnAccountManagmentPlus_Click">+</Button> |
<Button Grid.Column="0" Name="btnAccountManagmentMinus" Width="20" Click="btnAccountManagmentMinus_Click">-</Button> |
<Label Grid.Column="1">ניהול חשבונות</Label> |
</Grid> |
</GroupBox.Header> |
<StackPanel > |
<StackPanel Orientation="Horizontal"> |
<TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג תקציב</TextBlock> |
<ComboBox Name="cmbBudgetType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbBudgetType_SelectionChanged"></ComboBox> |
<TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג פעילות</TextBlock> |
<ComboBox Name="cmbActivityType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbActivityType_SelectionChanged"></ComboBox> |
<Button Name="btnFilter" Margin="30,5,5,5" Click="btnFilter_Click">הצג</Button> |
<Button Visibility="Hidden" Name="btnTry" Margin="30,5,5,5" Click="btnTry_Click">Try</Button> |
</StackPanel> |
<StackPanel> |
<StackPanel.Resources> |
<Style x:Key="ToolTipColumnStyle" TargetType="telerik:GridViewCell"> |
<Setter Property="ToolTip" Value="{Binding Content,RelativeSource={RelativeSource Self}}" /> |
</Style> |
</StackPanel.Resources> |
<telerik:RadGridView Name="gvAccount" Margin="5,5,5,5" AutoGenerateColumns="False" |
CanUserResizeColumns="False" CanUserReorderColumns="False" ScrollMode="RealTime" |
CanUserFreezeColumns="False" ShowGroupPanel="False" CanUserSortColumns="False" |
FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="True" CanUserInsertRows="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="BudgetTypeName" Header="תקציב" Width="60"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון/ סעיף/תת סעיף" Width="160" CellStyle="{StaticResource ToolTipColumnStyle}"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מס' חשבון/ סעיף/תת סעיף" Width="110" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="TotalBudget" Header="הקצבה כוללת (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceBudgetAllocation" Header="יתרה לתקצוב (אש''ח)" Width="75" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumBudgetRequest" Header="שריון לפעילויות (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderAllocation" Header="התחייבות לפעילויות (אש''ח)" Width="75" /> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderPaid" Header="שולם בפועל (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceToPay" Header="יתרה לתשלום (אש''ח)" Width="75"/> |
<telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="ActivityTypeName" Header="סוג פעילות" Width="120"/> |
</telerik:RadGridView.Columns> |
<telerik:RadGridView.HierarchyChildTemplate> |
<DataTemplate> |
<telerik:RadGridView Name="gvBudget" Loaded="OnChildGridLoaded" |
CanUserReorderColumns="False" HorizontalContentAlignment="Right" |
CanUserFreezeColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" |
FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="False" CellEditEnded="gvBudget_CellEditEnded"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="aa" Header="סוג תקציב" Width="33"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון" Width="160" CellStyle="{StaticResource ToolTipColumnStyle}"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מספר חשבון" Width="110"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="TotalBudget" Header="הקצבה כוללת אש''ח" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceBudgetAllocation" Header="יתרה לתקצוב אש''ח" Width="75" /> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumBudgetRequest" Header="שריון לפעילות אש''ח" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderAllocation" Header="התחיבות לפעילות אש''ח" Width="75" /> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderPaid" Header="שולם בפועל" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceToPay" Header="יתרה לתשלום" Width="75"/> |
<telerik:GridViewComboBoxColumn UniqueName="ActivityTypeID" DataMemberBinding="{Binding ActivityTypeID}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="סוג פעילות" Width="120" /> |
</telerik:RadGridView.Columns> |
<telerik:RadGridView.HierarchyChildTemplate> |
<DataTemplate> |
<telerik:RadGridView Name="gvSubBudget" Loaded="OnSubChildGridLoaded" CellEditEnded="gvBudget_CellEditEnded" |
CanUserReorderColumns="False" HorizontalContentAlignment="Right" |
CanUserFreezeColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" |
FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="aa" Header="סוג תקציב" Width="32"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון" Width="160" CellStyle="{StaticResource ToolTipColumnStyle}"/> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מספר חשבון" Width="110"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="TotalBudget" Header="הקצבה כוללת אש''ח" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceBudgetAllocation" Header="יתרה לתקצוב אש''ח" Width="75" /> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumBudgetRequest" Header="שריון לפעילות אש''ח" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderAllocation" Header="התחיבות לפעילות אש''ח" Width="75" /> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderPaid" Header="שולם בפועל" Width="75"/> |
<telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceToPay" Header="יתרה לתשלום" Width="75"/> |
<telerik:GridViewComboBoxColumn UniqueName="ActivityTypeID" DataMemberBinding="{Binding ActivityTypeID}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="סוג פעילות" Width="120"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</DataTemplate> |
</telerik:RadGridView.HierarchyChildTemplate> |
</telerik:RadGridView> |
</DataTemplate> |
</telerik:RadGridView.HierarchyChildTemplate> |
</telerik:RadGridView> |
</StackPanel> |
</StackPanel> |
</GroupBox> |
I have the latest build of WPF Q2 SP1 and I am getting the following error:
A TwoWay or OneWayToSource binding cannot work on the read-only property 'xxx' of type 'TelerikTestProject.TestClass'. This error happens whenever I place the GridView inside of a Actipro PopupButton and then inside of a Actipro ResizableContentControl. If I take the RadGrid out of the control I don't get the error. I have a sample project I can send you to reproduce the error.
<Window x:Class="TelerikTestProject.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="300" Width="300" |
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
> |
<Grid> |
<shared:PopupButton Grid.Column="1" HorizontalContentAlignment="Left" BorderThickness="0" BorderBrush="Transparent" PopupContent="{Binding}" VerticalContentAlignment="Center" Margin="0" Background="Transparent" IsRounded="True" DisplayMode="Merged"> |
<shared:PopupButton.PopupContentTemplate> |
<DataTemplate> |
<shared:ResizableContentControl MinHeight="50" MinWidth="300" Padding="1" > |
<telerik:RadGridView ItemsSource="{Binding Items}" AutoGenerateColumns="False" ShowGroupPanel="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Comments}" UniqueName="{x:Null}"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</shared:ResizableContentControl> |
</DataTemplate> |
</shared:PopupButton.PopupContentTemplate> |
</shared:PopupButton> |
</Grid> |
</Window> |
Hi,
I wanted to manage 2 listBoxs with drag and drop functionnality in a AppointmentDialogWindow of sheduler.
So,i designed in a ControlTemplate of AppointmentDialogWindow 2 listBox with drag and drop functionnality.
In the code behind, I declare :
RadDragAndDropManager.AddDragQueryHandler(this,OnDragQuery); |
RadDragAndDropManager.AddDragInfoHandler(this, OnDragInfo); |
RadDragAndDropManager.AddDropQueryHandler(this, OnDropQuery); |
RadDragAndDropManager.AddDropInfoHandler(this, OnDropInfo); |
where “this” is the form contain the radSheduler.
The problem is the methodes “OnDragQuery”, “OnDragInfo”, “OnDropQuery” and “OnDropInfo” aren’t actived when I drag and drop a item.
How can i catch eventDragAndDrop’s listBox designed in AppointmentDialogWindow of a sheduler from the sheduler’s form?
Thanks for your help.
grdCol =
new Telerik.Windows.Controls.GridViewColumn() { Name = "grdColDelete" };
DataTemplate dt =
new DataTemplate();
Button
btnDel = new Button(){Content = "Del", Width = 18, Height = 18, CommandParameter = new Binding("ApplicationCommands.Delete")};
grdCol.CellTemplate = dt;
var viewItem = new RadTileViewItem(); |
var content = new RadFluidContentControl(); |
content.SmallToNormalThreshold = new Size(235, 35); |
content.NormalToSmallThreshold = new Size(305, 149); |
content.NormalToLargeThreshold = new Size(315, 155); |
content.LargeToNormalThreshold = new Size(725, 345); |
content.SmallContent = new TextBlock {Text = "Original Data"}; |
content.Content = ResolveControl<OriginalData, UDataTable>(); |
viewItem.Content = content; |
projectData.Items.Add(viewItem); |
var s = (((projectData.Items[0] as ContentControl).Content) as RadFluidContentControl); |
s.Content = _unityContainer.Resolve<MyUserControl>(); |