Telerik Forums
UI for WPF Forum
3 answers
64 views
Hi,

May I know are we going to get PageNavigation for WPF?

Please advice.
Valentin.Stoychev
Telerik team
 answered on 14 Oct 2009
1 answer
143 views
I'm try to use IsGreaterThanOrEqualTo and and IsLessThanOrEqualTo filter but i have error using int value???
I have found nothing about this filter usage.
Please, tell me what data type are usable with.
Stefan Dobrev
Telerik team
 answered on 14 Oct 2009
1 answer
141 views
 <Style x:Key="RadTabControlStyle">
             
                <Setter Property="telerikNavigation:RadTabControl.ItemContainerStyle">
                    <Setter.Value>
                        <Style TargetType="telerikNavigation:RadTabItem">
                            
                            <Setter Property="FontFamily" Value="Tahoma"/>
                            <Setter Property="Foreground" Value="White"/>
                         
                            <!--Setting the template for the headers.-->
                            <Setter Property="HeaderTemplate">
                                <Setter.Value>
                                    <DataTemplate>
                                        <WrapPanel Margin="3">
                                            <Image Source="{Binding}" Height="25" />
                                            <TextBlock Text="{Binding}" FontSize="15" TextAlignment="Center"   VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="110" >
                                            </TextBlock>
                                        </WrapPanel>
                                
                                    
                                    </DataTemplate>
                                </Setter.Value>
                            </Setter>
                            <Style.Triggers>
                                <Trigger Property="IsSelected" Value="False">
                                 
                                    <Setter Property="BorderThickness" Value="0.5" />
                                    <Setter Property="BorderBrush" Value="LightGray" />
                                </Trigger>
                                                          
                            
                            </Style.Triggers>
                        </Style>
                    </Setter.Value>
                </Setter>
                
            </Style>


This is the style I am applying to radTabcontrol and Binding tabItem in xaml
<telerikNavigation:RadTabItem x:Name="tbAddress" Header="Address" Foreground="Black" TabIndex="2"   HorizontalAlignment="Left">
                                <ctrl:AddressControl x:Name="ctrlAddress"  ></ctrl:AddressControl>
                            </telerikNavigation:RadTabItem>

I am not assigning any ItemSource to tabControl,It works great it show header text with centerd align.
But problem is that I want to bind different image with this header text in tabHeader and I have mentined Image sOurce={Binding} so that I can provide image at run time

DataTemplate template = tbIdentification.HeaderTemplate as DataTemplate;
            if (template == null) return;
            WrapPanel pnl = template.LoadContent() as WrapPanel;
Image ImgButton = pnl.Children[0] as Image;
           ImgButton.BeginInit();
ImgButton.Source = (ImageSource)new ImageSourceConverter().ConvertFrom(new Uri("pack://application:,,,/SafetyAuditUserControl;component/Images/truck.png",UriKind.RelativeOrAbsolute ));
            ImgButton.EndInit();


It not showing Image.Please help me out for this ASAP.
Miroslav
Telerik team
 answered on 13 Oct 2009
2 answers
143 views
I have to place two GridViews
in the same place
one is visible and the other id hidden
I can change the visibilty of each one
but only one can be visible

I tried to use DockPanel
but they are placed one beside the other
and not one "over" the other

this is my code
<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> 

Thanks!!
Orit
Top achievements
Rank 1
 answered on 13 Oct 2009
3 answers
271 views
  • WPF version Q2 Service Pack 1 Nightly Build on 8/13/2009
  • OS - Windows 7 64-bit and Windows Vista 64-bit
  • exact version of the Telerik product - 2009.2.911.35
  • preferred programming language C#

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

Milan
Telerik team
 answered on 12 Oct 2009
1 answer
111 views
I try to run my project with a telerik control and i get the following error:

could not load file or assembly 'Telerik.Windows.Controls,' or one of it dependencies.
The module was expected to contain an assembly manifest. Error at object system.windows.controls.canvas.

Thanks.
Vlad
Telerik team
 answered on 12 Oct 2009
3 answers
217 views
Hello,

I've searched the forum but without success! Apparently, I am the only one trying to bind a GridViewComboBoxColumn to a class (instead of simple a int or a string).

All the binding is working fine, the ComboBox is filled in correctly, changing and saving data is working but the GridView doesn't display the value on start (strangely, it is displaying correctly after I choose a value in the ComboBox...)!

I guess there is something missing to make the match between the original value and the values in the ComboBox... but what?

Here is a sample of my faulty code:

The main class of the GridView (note that here we have a Currency class and not a CurrencyID)
public class Fund  
{  
   public virtual string Name { getset; }  
   public virtual Currency Currency { getset; }  

The Currency class
public class Currency : AbstractLinkedClass  
{          
   public virtual string IsoCode { getset; }  

The grid's XAML code
<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> 

The .cs code behind where currencies are taken from the DB.
rgvFund.Columns[1].DataContext = currencies; 

Any idea why with this code, the Currency column appears empty on load (while Fund.Currency is correctly filled in on start)?

Thank you,

Daniel
Pavel Pavlov
Telerik team
 answered on 12 Oct 2009
1 answer
108 views
Hello Telerik,

I am using rad drag drop control, when the selection mode is multiple for the list box, the behaviour is something like below:

if i want to select three items, 
-> click on first item, second item and third item

now when i am about to drag these items i will click on any one of the selected items and drag(a general windows user will expect this functionality to work fine). So when i click on item, the clicked item is getting deselected and as a result i am getting only two items in the payload of drag query.

the above functionality is a bit confusing for a normal windows user.
how can i get the drag functionality as "Control + Click" to select the items and "MouseLeftButtonDown + Drag" to drag the items (Similar as how we drag two or more folders in the file explorer of our windows(My Computer -> C:\))

Thanks,
Kranthi
Miroslav
Telerik team
 answered on 10 Oct 2009
3 answers
192 views

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

Miroslav
Telerik team
 answered on 10 Oct 2009
7 answers
153 views
Every time I attempt to view the demo of the WPF Carousel object, I receive an Fatal Error with a massive message box, chock full of error text....any thoughts of how to fix this? I really to need to demo this control.
Jose Simas
Top achievements
Rank 2
 answered on 09 Oct 2009
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?