Telerik Forums
UI for WPF Forum
6 answers
96 views
Hi,

I have the following scenario:
Via RadScheduleView I want to generate "Backup Schedules" (just an example).
I want to say "Every day at 10 schedule a backup".

When the backup runs I want to mark the specific schedule with backup status information.

So the idea is to add a recurring appointment to my database.
A service will check if an appointment "is ready" - if so it will call a method passing the appointment.
The method calls the backup and change the appointment according to the outcome of the process.

Since the recurring appointment is a "single record" with a recurrence rule I would:
a.) Change the "Start" of the recurring task to a time AFTER the current occurrence
b.) Create a "normal" appointment (no recurrence) for the just run job and set the status flag on this appointment

This has one "extra positive result" - if I change the schedule (let's say from 10 to 9:30) the already run appointments keep their correct "operation time", while future jobs will run at 9:30.

The negative side - I'm no longer able to find associated (past) schedules via the recurring record.

Any ideas - suggestions?

Manfred
Yana
Telerik team
 answered on 16 Jul 2014
4 answers
177 views
Hi! I'm testing your WPF controls and I'm trying to make a tree hiearchy with drag and drop. The thing is I want to disable dragging all over the place. First feature I'd need is to check for leaf to leaf collision. If I'm collinding with another leaf when dragging, i want to switch their places. The other feature i'm interested in is leaf to connection coliision. I want to do it so that if i drag a leaf and collide with a connection, if i drop it it connects to that connection, severs the connection to the old leaf and reconnects it on it's tail. What would be the best way to detect such collision in your wpf controls? Any ideas? (or maybe is there something like this already implemented? I read the docs but I might have missed something.)
Luka
Top achievements
Rank 1
 answered on 16 Jul 2014
2 answers
96 views
I've got a problem where I've got a menu that appears over part of a pie chart. When a menu item is clicked such that the mouse pointer is over a pie slice, an exception gets thrown (Exception info at the end) when the menu closes. I thought I'd just override PieSeries and catch that exception in the derived class. So, that's what I did. I created a simple derived class and overrode OnMouseLeave. That's the only thing in the derived class. Unfortunately, when using that new pie series class, none of the pie slices get drawn. Snoop tells me that the datapoints are all created and in the chart, the RadLegend is showing all the correct info. Just no slices. Do you have any suggestions?  Are there more requirements to deriving from PieSeries?

Thanks - Mitch

​Message:
Object reference not set to an instance of an object.

Operating System:
Microsoft Windows NT 6.2.9200.0

Type:
System.NullReferenceException

Data:

Key:
System.Object
Value:


HResult:
-2147467261

Message:
Object reference not set to an instance of an object.

Source:
Telerik.Windows.Controls.Chart

StackTrace:
at Telerik.Windows.Controls.ChartView.PieSeries.OnMouseLeave(MouseEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\PieChart\PieSeries.Legend.cs:line 165
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.MouseOverProperty.FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, Boolean oldValue)
at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, IList`1 otherOrigins, DeferredElementTreeState& oldTreeState, Action`2 originChangedAction)
at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, DeferredElementTreeState& oldTreeState)
at System.Windows.Input.MouseDevice.ChangeMouseOver(IInputElement mouseOver, Int32 timestamp)
at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.MouseDevice.Synchronize()
at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.Exc
Petar Marchev
Telerik team
 answered on 16 Jul 2014
2 answers
318 views
I have a hard time finding a sollution to delete paragraph from open document. Code below crashes on aither delSection.Blocks.Remove(delParagraph); or later on radRichTextBox.UpdateEditorLayout(); after remove vas called. The error is: "inline does not belong to this document.". This seems to happen randomly. Sometimes everything passes without an error. I cant fine a way to get this working on regular basis.

01.private void DeleteTopicFromDoc(string tag)
02.{
03.    Section delSection = null;
04.    Block delParagraph = null;
05. 
06.    foreach (Section section in radRichTextBox.Document.Sections)
07.    {
08.        foreach (var block in section.Blocks)
09.        {
10.            var paragraph = block as Paragraph;
11.            if (paragraph != null)
12.            {
13.                string topicTag = string.Format("topic_{0}", tag);
14.                if (paragraph.Tag == topicTag)
15.                {
16.                    delSection = section;
17.                    delParagraph = block;
18.                    break;
19.                }
20.            }
21.        }
22.        if (delParagraph != null) break;
23.    }
24. 
25.    if (delParagraph != null)
26.    {
27.        delSection.Blocks.Remove(delParagraph);
28.    }
29.}

Also tried a different approach found on this forum, that was suggested by admin. It was that I use selection to select paragraph to remove and the call 
radRichTextBox.Delete(false); witch deletes selected content. But the problem is that I have to remove a ReadOnlyRange. So this approach does not fit.
Evaldas
Top achievements
Rank 1
 answered on 16 Jul 2014
1 answer
79 views
Hi all,

I am trying to achieve the attached. I have a list of records (filenames) which I want to show in a list. 
Anybody has any idea as to which control to use.

Regards,
Deepak
Masha
Telerik team
 answered on 16 Jul 2014
2 answers
363 views
We are binding the grid to a collection of items that use data annotation to drive the column headers.  Is there a way to automatically bind the tooltip to a particular attribute (or any attribute for that matter)?

Here is our grid:
<telerik:RadGridView HorizontalAlignment="Stretch"
                 VerticalAlignment="Stretch"
                 ShowGroupPanel="False"
                 IsFilteringAllowed="False"
                 ItemsSource="{Binding Instances}"
                 AutoGenerateColumns="True" />


This is a sample property:
[Display(ResourceType = typeof(Resources), Name = "InstanceViewModel_Name_Name")]
public string Name
{
    get { return InstanceModel.Name; }
    set
    {
        if (InstanceModel != null)
        {
            InstanceModel.Name = value;
            RaisePropertyChanged(() => Name);
        }
    }
}

Ideally we'd like something similar to (where Description appears as the tooltip for the column):
[Display(ResourceType = typeof(Resources), Name = "InstanceViewModel_Name_Name", Description = "InstanceViewModel_Name_Description")]
public string Name
{
    ...
}

Hopefully there is a solution
Thanks

John
John
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
111 views
Hi,

Suppose I have a custom shape based out of EllipseGeometry.

If I resize the diagram item in the diagram, only the Width and Height are updated. 

If I need the actual RadiusX and RadiusY of the EllipseGeometry, what needs to be done ?
Martin Ivanov
Telerik team
 answered on 15 Jul 2014
1 answer
133 views
I found this issue on the RichTextBox integration with RadBook demo:

When I load a .docx document it does not adjusts to the book size and shows only a portion of the text. It seems that the meassure functionality in not working. This error also causes that some pages are not showed (missing) between left and right page. I found this issue on the official demo, this is not a test project. I'm using Telerik WPF 2014.1.0331.45, I know that this is not the latest version, I just want to report this issue and maybe learn how to solve it.
Petya
Telerik team
 answered on 15 Jul 2014
1 answer
372 views
Hello,

please, can you advise me the way how to do radgridview width fixed columns width (each column has different width set in XAML) which won't resize columns when application is resized? I just need columns to have the same width no matter what and to show horizontal scrollbar if app is too small.

Is there a way how to do this?

Thanks,
Karel 
Boris
Telerik team
 answered on 15 Jul 2014
1 answer
133 views
Hi there,

How can i move tabs like what I'm showing in attached image?
Martin Ivanov
Telerik team
 answered on 15 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?