Telerik Forums
UI for WPF Forum
10 answers
667 views
Is there any way To open calendar on focus of DateTimePicker.Also i want to hide the logo inside that control.
Kalin
Telerik team
 answered on 08 Sep 2015
4 answers
466 views

Sir,
I have created menu with sub menu.But while i click on menu,the sub menu is opening just right of that menu.I want to open  below and sub menu letter alignment should middle.If you make template Grid Horizontal Alignment="left",then it is opening just below it properly but letter alignment becoming left.I want letter  alignment should be middle.Here i have attached my sample project link .If there is way to solve this,please help me.

 

https://drive.google.com/a/aisofttech.com/file/d/0Bz9Sv7mmLtkeeFBGTXB1OFVNTnM/view?usp=sharing​

Avinash
Top achievements
Rank 1
 answered on 08 Sep 2015
1 answer
83 views

Hi, I'm trying to use ContainerShapes in my application, but I always get a NullReferenceException when I resize a ContainerShapes.

I've not been able to reproduce the issue in other applications so I'm quite sure it's something on my side, but the stacktrace contains only calls to Telerik code so I'm stuck trying to figure out what's wrong... Can you provide me some hints?

I'm on .NET framework 4.0, Telerik UI for WPF 2015.2.728.40.

Here is the stack trace of the exception:

at Telerik.Windows.Diagrams.Core.ManipulationTool.<>c__DisplayClass15.<>c__DisplayClass17.<CreateAsyncCommand>b__9(Object state)
at Telerik.Windows.Diagrams.Core.UndoableDelegateCommand.Execute(Object state)
at Telerik.Windows.Diagrams.Core.AsyncStateCommand.Execute(Object state)
at Telerik.Windows.Diagrams.Core.AsyncStateCommand.Complete(Boolean commit, Object state)
at Telerik.Windows.Diagrams.Core.CompositeAsyncStateCommand.Complete(Boolean commit, Object state)
at Telerik.Windows.Diagrams.Core.ManipulationTool.MouseUp(PointerArgs e)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Telerik.Windows.Diagrams.Core.ToolService.MouseUp(PointerArgs e)
at Telerik.Windows.Controls.RadDiagram.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at MyApplication.App.Main() in D:\git\dfm-designer\src\MyApplication\obj\x86\Debug\App.g.cs:line 0

 

Many thanks!

Kiril Vandov
Telerik team
 answered on 08 Sep 2015
1 answer
140 views
Hello, I'm HeeJun.

I wonder one thing.

It's about 'Line' object in 'RadDiagram' control.

But, I can't draw beeline. ( straight,  perpendicular etc... , angle 90' )

Currently, I'm using the object as connection between two rectangle.

I try correction it, but position is incorrect in 'RadDiagram' control.

When it can be. Or what should I do?

Thank you.
Petar Mladenov
Telerik team
 answered on 08 Sep 2015
5 answers
116 views

Hi,

 i'm a newbie in c# or telerik. i'm using the RadScheduleView and try to edit the appointment by double-clicking time and the appointment dialog is appear, after i click OK the new appointment is now appear in UI. But after i close the app and run it again, the schedule is empty. why? 

what is the best way to save my appointment?

 

Nasko
Telerik team
 answered on 08 Sep 2015
1 answer
260 views

I would like to treat a normal WMS server as a tiled source. I saw some sample using a CustomMapProvider, but I also see there is a WmsTiledProvider. Is that the class I should use, or should I use something like this: http://stackoverflow.com/questions/9769581/telerik-map-wms 

To complicate matters, the WMS service uses maps in a Swedish meter based projection, EPSG:3006

Any help, preferably with sample, is appreciated!

/Magnus

Petar Mladenov
Telerik team
 answered on 08 Sep 2015
3 answers
165 views

Hi,
Is it possible to set some levels in the ganttview grid to readonly?
If we take the sample "Import from MS Project" as an example and says that we want OutlineLevel 1,2,3 to be readonly and OutlineLevel 4 as editabled. How do i do that?

Only thing that i have tested so far is to have a  boolean property in my custom tasks class  and then try to bind it to the control for the specific level:

<telerik:ColumnDefinition MemberBinding="{Binding End_str}" Header="End" ColumnWidth="80">
                    <telerik:ColumnDefinition.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadDatePicker 
                                 SelectedValue="{Binding End,Mode=TwoWay}"
                                 IsReadOnly="{Binding isLevelReadOnly}"  />
                        </DataTemplate>
                    </telerik:ColumnDefinition.CellEditTemplate>
</telerik:ColumnDefinition>
Nasko
Telerik team
 answered on 07 Sep 2015
1 answer
372 views

Hi everyone,

I am having troubles with the memory. I am developing a usercontrol in WPF to put it in a WinCC (Siemens) application. WinCC accepts WPF controls to be putted in its forms.

When I load my control in one of its pictures (they call pictures to any of its instances) my control gets load correctly. But when I go to another pic and come back to the pic of my control, it isn't load correctly the telerik controls.

I have tried to put every telerik control equal null, and remove them from their parents. it isn't work:

gridGanttView.Children.Remove(ganttView);
ganttView = null;
gridChart.Children.Remove(radCartesianChart);
radCartesianChart = null;
System.GC.Collect();
//System.GC.WaitForFullGCComplete(); (Any of this two works)
System.GC.WaitForPendingFinalizers();

I have seen there are people having the same problem like here: LINK

Any Solution? How can I step by step delete every control inside of RadGanttView and RadCartesianChart (or another ones)??

 Thanks.

Polya
Telerik team
 answered on 07 Sep 2015
7 answers
373 views
Hi, I'm not sure if this is possible but here is my scenario:

I'm using the StackedBar series and they work fine, but sometimes I will need to compare similar data and would need two series per datapoint on the X axis for this, and I have to do this in codebehind. In other words like a normal chart with multiple dataseries but with stacked bar chart.

Are there any examples for this ?

Best regards
Kristján.

Bhavya
Top achievements
Rank 1
 answered on 07 Sep 2015
2 answers
100 views
I try to export diagram to Html. But connection caption is hidden in .html file. How can i add connection caption into .html?
Mihail
Top achievements
Rank 1
 answered on 07 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?