Telerik Forums
UI for WPF Forum
5 answers
518 views
I'm adding shapes and connections manually in code behind to my RadDiagram. I'd like RadDiagram to layout shapes and fit it after adding last item, so i call RadDiagram.Layout(); and RadDiagram.AutoFit(); but that does not work. Why?

private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var shapes = new List<RadDiagramShape>();
 
            for (int i = 0; i <= 15; i++)
            {
                var shape = new RadDiagramShape();
                shapes.Add(shape);
 
                if (i == 0)
                {
                    _mainShape = shapes[0];
                }
 
                if (i > 0)
                {
                    var conn = new RadDiagramConnection {Source = _mainShape, Target = shape, SourceCapType = CapType.Arrow1};
                    RadDiagram.Items.Add(conn);                   
                }
            }
 
            RadDiagram.Items.AddRange(shapes);
 
            RadDiagram.Layout();
            RadDiagram.AutoFit();
        }
Petar Mladenov
Telerik team
 answered on 18 Oct 2013
2 answers
128 views
Hi,
I'm using the newly released version (2013.3.1016.40) of RadMaskedTextInput control.
The control has a strange behavior when inserting space.

<telerik:RadMaskedTextInput Culture="" Mask="" MinWidth="300" Margin="10,10,10,10"
    HorizontalContentAlignment="Right"
    UpdateValueEvent="LostFocus" TextMode="PlainText" InputBehavior="Insert" />

1. Type 1234567.
2. Put the cursor between 1 and 2.
3. Type space.
The input becomes "12 34567".

My environment: VS 2010, Windows 7.

Regards,
Gong
Vadimir
Top achievements
Rank 1
 answered on 18 Oct 2013
1 answer
183 views
Hi all,
Is there a way to get the clicked cell (double click) with 2013-3 version?
In the previous versions and internal builds (since one or two month ago) I was able to get clicked cell with this code:
private void pivot_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                RadPivotGrid p = sender as RadPivotGrid;
                FrameworkElement cell = e.OriginalSource as FrameworkElement;

then with cell object I was able to read properties such MDX coordinates to open for example a drill down data window.

Now if I try this code the cell variable is null. How can I get clicked cell and then MDX coordinates? Is it possible?

Many thanks in advance!

Best Regards,
Davide
Rosen Vladimirov
Telerik team
 answered on 18 Oct 2013
12 answers
653 views
Hi,
I am using RadGridView in my project but iam not able to customize it to my needs, the problem is its HeaderRow which is in its default color(black) on left side even if i am using this style 
<telerik:RadGridView.HeaderRowStyle>
<Style TargetType="telerik:GridViewHeaderRow">
<Setter Property="Background" Value="Green" />
</Style>
</telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Background" Value="Green" />
></telerik:RadGridView.HeaderRowStyle>                </Style>
><telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Background" Value="Green" />
>                </Style>
><telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Backgro
Vanya Pavlova
Telerik team
 answered on 18 Oct 2013
10 answers
374 views
Hi,

I'm using Telerik RadControls for WPF Q2 2012 within Visual Studio 2012 RC.  Generally, I've no problems, except with the RadRibbonWindow, which displays a light blue bar over the entire Title Bar area, effectively covering up the three buttons on the upper right hand side (see attached image).  The problem appears to be similar to that found in the post "trying to run existing application with RadRibbonWindow in Win8... Aero2 error" within this same forum. 

In that post (dated 07/12/2012), Viktor (from Telerik) replies that an internal build will be available in a week (approx. 07/19/2012).  However, I find no internal build that addresses this issue.  To be specific, my version of Telerik.Windows.Controls.RibbonView is 2012.2.607.40 and the runtime version is v4.0.30319.

I'm replacing the standard WPF MainWindow XAML file Window control with a Telerik RadRibbonWindow and set "RadRibbonWindow.IsWindowsThemeEnabled = false;" in the static constructor of MainWindow.  I'd appreciate any direction or fix you can provide.

Thanks,

Chris A
Pavel R. Pavlov
Telerik team
 answered on 18 Oct 2013
2 answers
331 views
Hi,

I have a gridview, where one of the columns are defined like this:

Two questions:

1)

<telerik:GridViewDataColumn DataMemberBinding="{Binding ApprovedForRI, Mode=TwoWay}"
Header="ApprovedForRI" Width="Auto" IsReadOnly="False"/>

and it is bound to an object, with property like this:

        public override bool ApprovedForRI
        {
            get
            {
                return base.ApprovedForRI;
            }
            set
            {
                base.ApprovedForRI = value;
                OnPropertyChanged("ApprovedForRI");
            }
        }

What I am trying to do is when I check/uncheck the box on UI in ApprovedForRI column, the "set" should get called, so the PropertyChanged event is fired, but I don't see this happening. What is the right way to achieve this.

2)
It seems like to check/uncheck the box, I need three clicks. first to select the cell, 2nd to select the checkbox, and finally 3rd to check/uncheck. Is there any way to make it single click, once row is selected?

Thanks.
Dimitrina
Telerik team
 answered on 18 Oct 2013
10 answers
437 views
Hi,

The PDFViewer does not scroll correctly using up/down arrow keys, sometimes it does nothing and sometimes it jumps. Is scrolling supported uisng arrow keys? Is there any API available to scroll line by line like jumping to specific page or page up/down?

Thanks
Ritwick
Ritwick
Top achievements
Rank 1
 answered on 18 Oct 2013
5 answers
102 views
Hi,

I am using a HierarchyChildTemplate in which I have bound the Header to our language file attempting to extract the correct header for the column.

In the case of a standard RadGridView the implementation works perfectly fine and I get the column header in the desired language

In the case of the HierarchyChildTemplate using the exact same solution results in the Column Header displaying the Path variable name of the bound DataMemberBinding instead?

I have tried a number of different binding solutions for the header however is seems Binding does not work.

Has anyone else experienced the same issues? or have a working example?  

 

										
Maya
Telerik team
 answered on 18 Oct 2013
2 answers
104 views
I have Applied  Expression_Dark As a theme for RadtreeView and also Windows8 theme for entire application now the problem is I wan't different color when the element gets selected or gets the focus so let me what to change.


 <telerik:RadTreeView x:Name="DashBoardChartTree"  telerik:StyleManager.Theme="Expression_Dark"  TabIndex="7"   Margin="5"  KeyboardNavigation.TabNavigation="Continue"  IsLineEnabled="True" SelectedItem="{Binding SelectedItem,Mode=TwoWay}"   ItemsSource="{Binding DashBoards}" Grid.Row="3"    
                                              ItemTemplate="{StaticResource TreeDashBoard}" PreviewDragEnded="radTreeView_PreviewDragEnded"     IsDragDropEnabled="True"     SelectedValuePath="{Binding DashBoard}"   SelectionChanged="DashBoardChartTree_SelectionChanged_1" ExpanderStyle="{StaticResource ExpanderStyle}">

Pavel R. Pavlov
Telerik team
 answered on 18 Oct 2013
9 answers
303 views

I have vs2013 and Q1 2013 using the OfficeSliver Theme creating a project with 4.5 Framework. I am getting a design error anytime a try to open any XAML file in designer.  I am getting this on brand new solutions with no controls on the window. 
I tried what was listed on this form http://www.telerik.com/community/forums/wpf/ribbonview/ribbonview-w-windows-8-theme-rd---blend-with-sketchflow-for-vs-2012-preview-crashing.aspx and confirmed that my theme file was indeed set the way suggested and it was but that is not changing the fact that I can not load a completely blank window. 

Any suggestions on what I can do? 

This is the design error that I am getting:

System.ArgumentException

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

 

 

 

System.ArgumentException

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

Server stack trace: at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

 

System.ArgumentException

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

at System.Windows.Setter.Seal() at System.Windows.SetterBaseCollection.Seal() at System.Windows.Style.Seal() at System.Windows.Style.System.Windows.ISealable.Seal() at System.Windows.StyleHelper.SealIfSealable(Object value) at System.Windows.ResourceDictionary.SealValue(Object value) at System.Windows.ResourceDictionary.SealValues() at System.Windows.ResourceDictionary.AddOwner(DispatcherObject owner) at System.Windows.ResourceDictionary.PropagateParentOwners(ResourceDictionary mergedDictionary) at System.Windows.ResourceDictionary.OnMergedDictionariesChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item) at System.Windows.ResourceDictionaryCollection.InsertItem(Int32 index, ResourceDictionary item) at System.Collections.ObjectModel.Collection`1.Add(T item) at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.TrySetApplicationResources() at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.EndInstanceBuilding() at Microsoft.Expression.DesignSurface.View.WPFSceneView.CrossDocumentUpdateToken.System.IDisposable.Dispose() at Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.UpdateInstances(IAttachViewRoot siteRoot, IList`1 contextNodes, CancellationToken cancelToken) at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInstancesInternal() at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.WPFSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.XamlSceneView.Update(Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.ViewUpdateManager.UpdateInvalidRelatedDocuments(SceneView view) at Microsoft.Expression.DesignSurface.View.XamlSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.WPFSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.XamlSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.View.WPFSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.DocumentViewContext.CreateAndOpenView(ISourceItemContext sourceItem, CancellationToken cancelToken, Boolean activate, Boolean ensureOpenInHost, Boolean suppressUI) at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e() at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

 

 

David Liebeherr - rent-a-developer
Top achievements
Rank 1
 answered on 18 Oct 2013
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?