Telerik Forums
UI for WPF Forum
1 answer
164 views
Hi,

I'm having some trouble using RadControls_for_WPF_2009_2_0813_TRIAL. I have used in a project RadWindow for WPF. "Sometimes" when I close a window the InvalidOperationException is thrown. I'm hoping to find help here, because for the moment I'm using the trial version of the controls, trying to demonstrate that this is a fine acquisition. Here is part of my stack trace:

Startup URI: ....xbap
Application Identity: file:///....xbap

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.Max(IEnumerable`1 source)
   at Telerik.Windows.Controls.RadWindowPopup.WindowPopupAdornerFactory.WindowPopupAdornerImpl.BringToFront()
   at Telerik.Windows.Controls.RadWindowManager.BringToFront(RadWindow window)
   at Telerik.Windows.Controls.RadWindow.<BringToFront>b__3()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, 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)
   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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   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.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.StartDispatcherInBrowser(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, 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)
   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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

-----------------------

Thanks !!
Miroslav Nedyalkov
Telerik team
 answered on 17 Sep 2009
1 answer
78 views
Can you make a sample of export grid (with hierarchy) to execl
Thanks
Orit
Stefan Dobrev
Telerik team
 answered on 16 Sep 2009
1 answer
89 views
Hi Guys

With the following data in item source

{1,2,7,4,9}
{1/1/2009,2/1/2009,3/1/2009,4/1,2009,5/1,2009}

N.B the dates are the 1st on the month.

 


The BarSeriesDefinition  is fine but width of the bars are very small , this is due to the fact that the control assumes there are zero values for all the rest of the days of the month. Now can i change this ?


Ves
Telerik team
 answered on 16 Sep 2009
4 answers
227 views
Hi,
are the WPF controls completable with MS 2010? I download the WPF controls and trying for tree view in Microsoft 2010, it is not working and throwing errors like
"Could not load file or assembly .....................................Telerik.Windows.Data.Dll" or one of it's dependencies (Exception from HRESULT:0x80131515)."

The same thing is working OK with Microsoft 2008.
I need to work with WPF controls in Microsoft visual studio 2010.
Please help me out
Thanks,
Nash
N_avtar
Top achievements
Rank 1
 answered on 15 Sep 2009
3 answers
682 views
Hi,

I am still very new to wpf and would like to know how i would add text to the progress bar. The demo has the textblock above the progress bar and not inside. My end goal is to have the progressbar in the gridview control on a per row basis.

Any help would be very appreciated

Kind Regards,

Clinton
kottu
Top achievements
Rank 1
 answered on 15 Sep 2009
7 answers
327 views
Hi,

Pre the 2009Q2 release, I could select and scroll to an item by setting the IsSelected and IsCurrent of that item to true and use BringDataItemIntoView. That worked perfectly all the time (except when grouped, but that's another forum post ;)).

In the current release, this doesn't work correct all the time. If I have a RadGridView that can 'show' 17 rows for instance, and I try to select an item with that's outside the viewport, it won't get selected/made current (using SetIsCurrent and SetIsSelected), but BringDataItemIntoView will still scroll to the item.

Is that a bug or am I doing something wrong?
Vlad
Telerik team
 answered on 15 Sep 2009
1 answer
91 views
Hai,
    I am using rad 2D piechart for our application. In this i was binded 4 digit value, at this time the last digit hides in the corner(ex:If i want to bind 1589 it shows 589 only).Can i bind the values in mid of the Area?

Thanks in advance.
Velin
Telerik team
 answered on 15 Sep 2009
5 answers
113 views
I've got a screen that has a few date pickers on it, used for Due Date, Start Date and Completion Date.

The software I'm writing has limits on how far forward/backward you can select a date, so a Completion Date can only be before or on Today's date, but not more than 1 week before today's date, likewise with the Start Date.

To implement this easily I've used the SelectableDateStart and SelectableDateEnd values.  These work well for my purposes, except for this case:

Users will often enter in a start date, then maybe 3 weeks later when the task is completed they come into the same screen to fill in the completion date.

The problem that occurs is that I'd like the already selected start date to be a valid entry in the RadDatePicker - the existing date shows up, but if the user happens to change the value, they can't get the originally selected start date back unless they exit the screen without saving.

What would be ideal in this situation is that in addition to the range of selectable dates you have an array/list, which allows you to specify other dates that can be selected that are outside of the range of SelectableDateStart and SelectableDateEnd.

Is it possible to get this feature introduced into the control?
Kaloyan
Telerik team
 answered on 15 Sep 2009
0 answers
94 views
anybody can help me.

1. How to change column width in radgridview using wpf..

thanks,
regards,
vignesh
kottu
Top achievements
Rank 1
 asked on 14 Sep 2009
1 answer
193 views
Hello again,

I've got two more issues

1)
When I bind the radgridview to a linq to sql datacontext and do sorting on a datetime column, then I get the following error:

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

2) In your demo application, under DataSourceUpdates, there goes something wrong in my opinion.
When you edit a textbox, the binding with the gridview.CurrentItem doesn't function anymore. Also after resetting the form, the text won't disappear. I think this has something to do with the oneway binding. I solved the problem by using the selectionchanged event instead of binding the textboxes to the CurrentItem

With kind regards,
Thomas


Stefan Dobrev
Telerik team
 answered on 14 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?