Telerik Forums
UI for WPF Forum
2 answers
179 views
Any way of adding drag handles to a CartesianMarkedZoneAnnotation?

Thanks,

Jonathan
Jonathan
Top achievements
Rank 1
 answered on 02 Jul 2014
3 answers
228 views
Hello,
I try to follow this demo: http://demos.telerik.com/silverlight/#ScheduleView/Grouping/GroupingAndFiltering
But not to load the appointments from xml. I try to build them from our system:

public ObservableCollection<Appointment> Appointments { get; set; }

Appointments = Context.Messages.Where(x => x.IsTask).Select(x => new Appointment()
            {
                Body = x.Text,
                Start = x.StartDate,
                End = DbFunctions.AddMinutes(x.StartDate, 20).Value,
                Resources = new ResourceCollection()
                {
                    new Resource(x.Sender.UserName, "User")
                }
            }).ToObservableCollection();

How I can do this when Resources not have a setter ?

Best regards,
Saykor
Saykor
Top achievements
Rank 2
 answered on 02 Jul 2014
1 answer
188 views
What does TimeSpanConverter convert? Timespan to ticks? To String? To DateTime?

The documentation is - like in so many cases - just auto-generated and does not give me any information. 

(BTW: Telerik's documentation is really bad. Much to often you stumble about "Help" like: "MoveItem() - Method moves the item" - aha, very helpful!)
Yana
Telerik team
 answered on 02 Jul 2014
3 answers
255 views
My goal is to drag a selected tree view node, with the ctrl key pressed, to perform an alternate drop. My issue is that when the ctrl key is held down, prior to clicking a selected node, that node is deselected on the mouse down event. When this happens my dragged payload is bound to an empty collection of selected items. I decided to compare this behavior with the solution explorer in VS and found that VS toggles the selection on mouse up, not down. So my question is, can I alter the tree view to select a node on mouse up? Is there a different way to reference this now deselected item?

My tree view's selection mode is set to multiple and I am setting the payload of the item via the DragInitialize event within an attached behavior (below). 

var data = (sender as RadTreeView).SelectedItems;


Thanks!
Pavel R. Pavlov
Telerik team
 answered on 02 Jul 2014
2 answers
239 views
Hello!

I have a view with a RadListBox consisting of RadRichTextBoxes on the left, and RadTreeView on the right.
Previously I just needed DragDrop behavior to enable user reorder items inside ListBox view, but now I am implementing scenario when user can drag an item from TreeView into one of the RadRichTextBoxes (this will insert some text at the caret position, but that does not matter).
I made this scenario work, but discovered that attempt to reorder items in ListBox now does not work correctly - if a dragged list item is dropped on a visual line before or after some other text item - it just disappears from the view. During investigation I discovered that all is ok unless I subscribe to any RadRichTextBox DropPreview event (to process tree item drop into RichTextBox). After this subscription is made DrapDrop behavior method Drop is never called, thus dragged list item is removed from ListBox ItemsSource collection and never added back to it with new index.

Thus my question is - how can I fix this problem and get both DragDrop scenarios work correctly?
Kalin
Telerik team
 answered on 02 Jul 2014
3 answers
271 views
I use MVVM and I didn't find out yet how to set RadDataForm in "AddNewItem" or "Edit" mode via ViewModel. There is a property "Mode" of type "RadDataFormMode" and it would be great if I can change that property in ViewModel and bind the View to that but sadly it has no setter. So how to achieve this in a MVVM friendly way?
Dimitrina
Telerik team
 answered on 02 Jul 2014
1 answer
150 views
We are using a RadMaskedDateTimeInput in a very simple UserControl. 
Everything runs well at runtime, but at design time we get frequently the following exception. If you reload the VS2010-Designer usually the exception vanishes.

-------

System.Exception
The component 'Telerik.Windows.Core.Design.Resources.SharedResourcesDictionary' does not have a resource identified by the URI '/Telerik.Windows.Core.Design;component/resources/sharedresourcesdictionary.xaml'.
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Telerik.Windows.Core.Design.Resources.SharedResourcesDictionary.InitializeComponent()
at Telerik.Windows.Core.Design.Resources.SharedResourcesDictionary.get_Instance()
at Telerik.Windows.Core.Design.SmartTagPaneBase.OnApplyTemplate()
at System.Windows.FrameworkElement.ApplyTemplate()
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at Microsoft.Windows.Design.Interaction.AdornerPanel.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Interaction.BaseAdornerLayout.Measure(UIElement adorner, Size constraint)
at MS.Internal.Interaction.AdornerLayer.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Petar Mladenov
Telerik team
 answered on 02 Jul 2014
3 answers
206 views
I have an application using a WPF RadTreeView control. I try to control the RadTreeView using a Coded UI Test.

Now I found out that the Playback is only able to find nodes of an RadTreeView which have already been displayed in the application. Given
a tree that looks like this:

Node1
   Node11
   Node12
Node2
   Node21
   Node22

After application start the RadTreeView only displays the top level nodes:

Node1
Node2

When I now try to find the 'Node11' control:

    WpfRadTreeViewItem node = _AppWindow.Navigation.GetNode("Node11");
    Click(node);

I get the error: 'The playback failed to find the control with the given search properties'. However, after expanding the Node1 and Node2 manually (and closing them again), the playback is able to locate the control (even if it is not currently displayed in the navigation tree).
I assumed that this is related to the "LoadOnDemand" feature of the RadTreeView, so I tried to set the 'IsLoadOnDemandEnabled'
and the 'IsVirtualizing' properties of the RadTreeView to 'False', but that did not change the behavior.

Is there a way that playback find's the control even if it has been not yet displayed in the navigation tree?
Is there a way to force the RadTreeView to load all subitems even if they are not yet displayed?

While searching for a workaround I tried to expand the root nodes by setting the 'IsExpanded' property to 'True':

    WpfRadTreeViewItem node = _AppWindow.Navigation.GetNode(target);
    node.IsExpanded = true;

However, if I do this, I get another error 'SetProperty of "IsExpanded" is not supported on control type: TreeItem'.

Why do I get this error?
What can I do to expand the Node by the Playback?
(Klicking on is no good idea since the node may already be expanded.)

Thanks and best regards,
Claudio
Petar Mladenov
Telerik team
 answered on 02 Jul 2014
1 answer
179 views
I have OLAP Cube defined in SQL Server Analysis server and now am trying to connect the RadpIvotGrid (for WPF) and RadPivotFieldList to this Cube. I presume I should create a xmlaDataProvider and then set the connection settings. I cannot seem to get this working nor can I find any detailed instructions. My specific questions are:
1. How do I format the connectionsettings.ServerAddress - do I have to use http: or can I just provide a connection string. Can you provide examples of both of these - my server name is CUBESERVER and its ip address is 192.168.1.117
2. Once I have got a connection I presume I just set the RadPivotGrid and RadPivotFieldList dataprovider to the xmlaDataProvider created in step 1 and 2 above - is this correct:?
3. How then do I specify what fields I want to show in the PivotField List or does it just pick these up from the dataprovider - i.e. the fields in the Cube and what does it pick up - e.g. The measures or the dimensions?
4. Finally do you have any example code (in C#) of connecting to a SQL Server Analysis server and setting the connection etc

I would appreciate your comments - thank you
Rosen Vladimirov
Telerik team
 answered on 02 Jul 2014
1 answer
128 views
Hello!

I am using RadRichTextBox, and in my scenario user can add hyperlinks to RichText to some application entities. Those entities can change their names outside of the richtextbox, so I need to update hyperlink text with corresponding data. But documentation about HyperlinkRangeStart does not give any clues how to update hyperlink text.

Can someone please tell me how can I accomplish my task?

WBR,
Dmitry.
Petya
Telerik team
 answered on 01 Jul 2014
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?