Telerik Forums
UI for WPF Forum
1 answer
180 views
I am having trouble getting the RadPDF Viewer to bind to a wcf stream.

I am able to work with the stream and collect the bytes of the PDF in test so I know the wcf constructs are working,  however when I attempt to bind the radPDFViewer to the stream object from wcf I get the error below. Is the RadPDFviewer only able to support memory stream and file streams?

A first chance exception of type 'System.NotSupportedException' occurred in Telerik.Windows.Documents.Fixed.dll

... snippet from wcf call.

StreamAttachment = client.DownloadAttachment(txtDocumentOID.Text); PdfDocumentSource source = new PdfDocumentSource(StreamAttachment); //, FormatProviderSettings.ReadOnDemand); this.pdfViewer.DocumentSource = source; this.pdfViewer.DocumentSource.Loaded += (s, e) => { StreamAttachment.Close(); };

Thanks
Kammen
Telerik team
 answered on 19 Dec 2012
1 answer
65 views
Hello,

I have a question I've not found answer yet. I have a ScheduleView control, with a lot of coincidental appointments. I do need the ScheduleView to show them superimposed, the shorter over the larger ones, instead of show them side by side. Is this scenario possible? 

Thank you in advance.
Yana
Telerik team
 answered on 19 Dec 2012
1 answer
215 views
i've read some of the threads in the forum about how to style the item in Ganttview controls,such as the thread "specific color for each type of task " , the thread "Tree column frustrations ", the thread "Adding to GanttView Style "
but i still can not set the background color of the tree column item as same as the color of the task shown in the example program attachment in the thread "specific color for each type of task",and i can not set the color using DataTemplate for the column.
Is there any way in the current code to have the TreeColumn item background to be same as the task background color in the list ? How do I get at my data item from within a DataTemplate? The data context doesn't appear to be correct.
hope for your help
Masha
Telerik team
 answered on 19 Dec 2012
1 answer
85 views
Hi,

I upgraded my controls to WPF Q3 2012 (2012.3.1017.40) from 2012.1.215.40.

We have a button to reset all filters at once on top of the grid. It calls 1 line of code in the on click event.
<grid>.FilterDescriptors.Clear();

It has been working forever but after the upgrade has started showing intermittent issues. It does not happen all the time. Its not machine specific.Once it happens it does not correct itself and the only option is closing the app and reopening. There is no set of steps to reproduce the issue, and it seems to be very random.

The error & stacktrace is below,
MESSAGE:Object reference not set to an instance of an object.
STACKTRACE:   MESSAGE:Object reference not set to an instance of an object. STACKTRACE:   at Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.FilterViewModelCollection.get_FilterDescriptors()
   at Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.FilterViewModelCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
   at Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter)
   at Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
   at Telerik.Windows.Data.RadObservableCollection`1.ClearItems()
   at Telerik.Windows.Data.ObservableItemCollection`1.ClearItems()
   at System.Collections.ObjectModel.Collection`1.Clear()
   at <removed [Button_Click(s,e)]>


Help!

Thanks,
Erol
Yordanka
Telerik team
 answered on 19 Dec 2012
1 answer
55 views
Hi,

is there a list with all new WPF-Controls coming up 2013?

Thanks
Best Regards
Rene
Vlad
Telerik team
 answered on 19 Dec 2012
0 answers
58 views
Hi ,

I need to display Group header at the top of the child grid, But i am not implementing any grouping here, Simply i need to display the data in the child grid with a header.
Number of records in the child grid will be shown in the header.
how can i implement this, kindly help..


Thanks
Somasekharan
Somasekharan
Top achievements
Rank 1
 asked on 19 Dec 2012
0 answers
105 views
Hello,

First to say that Telerik team did excellent job, Bravo!!!

I have used previously some of the telerik controls and it was for ASP.net, and I had no problems at all/

This time I downloaded demos as Visual Studio projects and I wanted to give it a shot about its functionality. But I reached a dead end.

Every single project when I try to run it gives me 2 errors:
Can someone just give me some information, so I can start playing with these tools :)


Thanks


1. Project File Does Not Exist
2. Error 2 The command ""C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\..\..\ProjectFilesListGenerator\Compiled\ProjectFilesListGenerator.exe" /ProjectDir:'C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\' /OutputFileName:FilesList.xml /FileExtensions:cs,vb,xaml,txt,xml
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\ProjectReferencesListGenerator.proj" /target:WriteReferencesToFile /property:References="System.XAML;System;System.Data;System.Xml;System.Core;System.Xml.Linq;System.Data.DataSetExtensions;Telerik.Windows.Controls;Telerik.Windows.Controls.DataVisualization, Version=2010.1.422.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL;Telerik.Windows.Controls.Input;Telerik.Windows.Controls.Navigation;Telerik.Windows.Data;WindowsBase;PresentationCore;PresentationFramework";ProjectDir="C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\\"." exited with code 1. Carousel.WPF

Wex
Top achievements
Rank 1
 asked on 18 Dec 2012
4 answers
264 views
I'm working on styling our RadDocking controls and I am having a lot of trouble finding where in the styles the border around the central items in the DocumentHost is set.  It's the last thing I need to style for this control and I need some help finding it.  What style does that border live in?
Philippe
Top achievements
Rank 1
 answered on 18 Dec 2012
10 answers
395 views
I'm working on an application that requires us to overlay UI elements on a PDF background. We're trying to use RadPDFViewer as that background, but are having a tough time getting rid of the built in scrollbars.

Our ideal situation would be for both the RadPDFViewer and an overlay canvas to be children of a scrolling container, which can be zoomed in and out as well.

Are there any tricks to this or is this not something that can be done?
Joe
Top achievements
Rank 1
 answered on 18 Dec 2012
2 answers
108 views
WPF Version: 2012.1.326.40 Framework: 4.0.30319

I have been having an issue ever since I started using the Telerik product suite, it's very rare, but it's absolutely driving me up the wall as I am absolutely dumbfounded as to what the cause is.

Every once in awhile, while navigating to a different page, I get this exception:

System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Remove(GeneratorPosition position, Int32 count, Boolean isRecycling)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IRecyclingItemContainerGenerator.Recycle(GeneratorPosition position, Int32 count)
   at Telerik.Windows.Controls.GridView.BaseItemsControl.ClearRelizedChildren()
   at Telerik.Windows.Controls.GridView.BaseItemsControl.SetItemContainerGenerator(GridViewItemContainerGenerator containerGenerator)
   at Telerik.Windows.Controls.GridView.BaseItemsControl.ResetItemContainerGenerator()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   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.AnimatedRenderMessageHandler(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)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at APSSSentinel.App.Main()

This is something I have simply not been able to reproduce on a consistent basis, and something I haven't been able to isolate.  I will try to provide any other information that you need, but I just had to give posting this a shot as it is driving me insane.
intellitechcorporation
Top achievements
Rank 1
 answered on 18 Dec 2012
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?