<DockPanel> |
<StackPanel DockPanel.Dock="Top" Background="CornflowerBlue" Orientation="Horizontal"> |
<Button Margin="2,1,2,1">הפק דוח</Button> |
<Button Name="btnCancelSystemTables" Margin="2,1,2,1" Click="btnCancelSystemTables_Click">בטל</Button> |
<Button Name="btnNewSystemTables" Margin="2,1,2,1" Click="btnNewSystemTables_Click">חדש</Button> |
<Button Name="btnDeleteSystemTables" Margin="2,1,2,1" Click="btnDeleteSystemTables_Click">מחק</Button> |
<Button Name="btnSaveSystemTables" Margin="2,1,2,1" Click="btnSaveSystemTables_Click">שמור</Button> |
</StackPanel> |
<StackPanel DockPanel.Dock="Top" Margin="10,10,10,10" Orientation="Horizontal"> |
<TextBlock Margin="5,5,5,5">שם טבלה</TextBlock> |
<ComboBox Name="cmbTableName" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbTableName_SelectionChanged"></ComboBox> |
<Button Name="btnMoveUp" Click="btnMoveUp_Click">+</Button> |
<Button Name="btnMoveDown" Click="btnMoveDown_Click">-</Button> |
</StackPanel> |
<telerik:RadGridView DockPanel.Dock="Left" Visibility="Hidden" Name="gvSystemTables" Margin="5,5,5,5" Height="520" Width="350" AutoGenerateColumns="False" |
IsFilteringAllowed="False" FlowDirection="RightToLeft" ShowGroupPanel="False" CellEditEnded="gvSystemTables_CellEditEnded"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="ID" Header="קוד" Width="50"/> |
<telerik:GridViewDataColumn IsReadOnly="False" UniqueName="Name" Header="ערך" Width="250"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
<telerik:RadGridView DockPanel.Dock="Left" Visibility="Hidden" Name="gvLoadingUnitFrame" Margin="5,5,5,5" Height="520" Width="350" AutoGenerateColumns="False" |
IsFilteringAllowed="False" FlowDirection="RightToLeft" ShowGroupPanel="False" CellEditEnded="gvLoadingUnitFrame_CellEditEnded"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewComboBoxColumn UniqueName="LoadingUnit" DataMemberBinding="{Binding LoadingUnit}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="לקוח להעמסה" Width="110" /> |
<telerik:GridViewDataColumn IsReadOnly="False" UniqueName="LoadingFrame" Header="מסגרת" Width="110"/> |
<telerik:GridViewComboBoxColumn UniqueName="OBSID" DataMemberBinding="{Binding OBSID}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="ענף" Width="110" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
<TreeView DockPanel.Dock="Left" Visibility="Hidden" Margin="10,10,0,13" Name="tvOBS" HorizontalAlignment="Left" VerticalAlignment="Top" Width="350" Height="520" KeyDown="tvOBS_KeyDown"></TreeView> |
<StackPanel DockPanel.Dock="Top"> |
<Popup x:Name="PopupEditTv" AllowsTransparency="True" Width="250" Height="150"> |
<Border Background="White" BorderBrush="Gray" BorderThickness="2"> |
<StackPanel Margin="10,10,10,10"> |
<TextBlock Margin="5,5,5,5">הכנס שם יחידה</TextBlock> |
<TextBox DockPanel.Dock="Top" Name="txtbEditTv" Width="80" Height="20"></TextBox> |
<StackPanel Orientation="Horizontal"> |
<Button Margin="5,5,5,5" Name="btnSaveTvText" Width="auto" Click="btnSaveTvText_Click">שמור</Button> |
<Button Margin="5,5,5,5" Name="btnCancelTvText" Width="auto" Click="btnCancelTvText_Click">בטל</Button> |
</StackPanel> |
</StackPanel> |
</Border> |
</Popup> |
</StackPanel> |
<StackPanel DockPanel.Dock="Top"> |
<Popup x:Name="PopupTest" AllowsTransparency="True" Width="250" Height="150"> |
<Border Background="White" BorderBrush="Gray" BorderThickness="2"> |
<StackPanel Margin="10,10,10,10"> |
<TextBlock Margin="5,5,5,5">בחר סוג פעילות להוספה</TextBlock> |
<RadioButton Margin="5,5,5,5" Name="rbInv" IsChecked="True" GroupName="rbActType">השקעות</RadioButton> |
<RadioButton Margin="5,5,5,5" Name="rbCon" GroupName="rbActType">שוטף</RadioButton> |
<StackPanel Orientation="Horizontal"> |
<Button Margin="5,5,5,5" Name="btnAddActType" Click="btnAddActType_Click" Width="auto">בחר</Button> |
<Button Margin="5,5,5,5" Name="btnCancelActType" Width="auto" Click="btnCancelActType_Click">בטל</Button> |
</StackPanel> |
</StackPanel> |
</Border> |
</Popup> |
</StackPanel> |
</DockPanel> |
1. I have several different styles of grids. I have a Heirarchical Grid and the arrow down selection it works only if you collapse the parent and then click somewhere near the + expander column with out expanding it. You can witness this wierd behavior on the First Look Sample.
2. Take a look at the Template and Unbound Sample. If you scroll to the bottom using the arrow keys and navigate 1 past the last row you can no longer move back up. This is a problem in several of the samples.
3. I have a grid with custom columns using Templated Columns and I cannot scroll through these at all with the arrow keys.
<telerik:RadGridView ColumnsWidthMode="Fill" AutoGenerateColumns="False" ItemsSource="{Binding Birth.MedicalInstrumentList_}" Height="200" HorizontalAlignment="Left" Margin="-492,0,0,-305" VerticalAlignment="Bottom" Width="465.117"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewColumn Width="25"> |
<telerik:GridViewColumn.CellTemplate> |
<DataTemplate> |
<CheckBox Style="{StaticResource DeleteCheckBoxStyle}" HorizontalAlignment="Center" IsChecked="{Binding IsSelected, Mode=TwoWay}" /> |
</DataTemplate> |
</telerik:GridViewColumn.CellTemplate> |
</telerik:GridViewColumn> |
<telerik:GridViewDataColumn Header="Name" Width="2*" DataMemberBinding="{Binding Path=Equipment.Name}" /> |
<telerik:GridViewDataColumn Header="Description" Width="3*" DataMemberBinding="{Binding Path=Equipment.Description}" /> |
<telerik:GridViewColumn Width="175" Header="Comments"> |
<telerik:GridViewColumn.CellTemplate> |
<DataTemplate> |
<usercontrol:TextExpander ExpanderText="{Binding Comment, Mode=TwoWay}" /> |
</DataTemplate> |
</telerik:GridViewColumn.CellTemplate> |
</telerik:GridViewColumn> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
Thanks,
Billy Jacobs
public class Fund |
{ |
public virtual string Name { get; set; } |
public virtual Currency Currency { get; set; } |
} |
public class Currency : AbstractLinkedClass |
{ |
public virtual string IsoCode { get; set; } |
} |
<telerik:RadGridView Grid.Row="3" Margin="0,5,0,5" Name="rgvFund" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" AutoGenerateColumns="False" RowEditEnded="rgvFund_RowEditEnded" ValidationMode="Row"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Name" DataMemberPath="Name" /> |
<telerik:GridViewComboBoxColumn Header="Currency" ItemsSource="{Binding}" UniqueName="Currency.IsoCode" DataMemberBinding="{Binding Currency}" DisplayMemberPath="IsoCode" SelectedValueMemberPath="." /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
rgvFund.Columns[1].DataContext = currencies; |
Hello,
When I put the RadTileView in a wpf UserControl I'm getting the following error message in the designer.
Object reference not set to an instance of an object.
at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.FindRootVisual() at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.Initialize() at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnAllowDragChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.SetAllowDrag(DependencyObject obj, Boolean value) at Telerik.Windows.Controls.RadTileViewItem.OnApplyTemplate() at System.Windows.FrameworkElement.ApplyTemplate() at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Canvas.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.SimpleViewManager.DesignerBackground.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Decorator.MeasureOverride(Size constraint) at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at MS.Internal.Designer.VSIsolatedDesigner.ViewHolder.Initialize() at MS.Internal.Designer.VSIsolatedDesigner.ViewHolder..ctor(UIElement content) at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.get_ViewHandle() at MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle() at MS.Internal.Designer.DesignerPane.LoadDesignerView()
Thanks much
Boots