Telerik Forums
UI for WPF Forum
11 answers
857 views
I'm trying to bind RadGridView SelectedItems property to a property on my ViewModel using the custom Behavior approach mentioned in the blog post, but it's not working.

I remember some folks having trouble with it when setting the dataContext at runtime rather than as a static resource. I'm using Prism's Dependency Injection to inject the viewModel into a property on the View. I can see that my ObservableCollection on my viewModel is being populated, but it's not showing up as selected items on my grid.

I need help getting this to work properly.
Milan
Telerik team
 answered on 16 Dec 2010
6 answers
213 views
I'm trying to implement dragging from a ListBox onto a ScheduleView, using DragAndDropManager.  I'm as far as the DropInfo handler on the view where the ScheduleView resides running, and am successfully getting the information that I want from the ListBox.  What I can't figure out is how to find out which slot I am trying to drop into.  DragDropEventArgs.Options.CurrentDragPoint would seem a promising way to this information, and the demos show how to so this for the old Scheduler control, but ScheduleView appears to operate differently.  The only other piece of information that I can find suggests that DefaultDragDropBehavior.ValidateExternalDrag "could be used to add the appointments from external source".

Is there a simple example available demonstrating how to drag from an external non-ScheduleView source onto a specific slot within a ScheduldeView in order to create a new appointment based on the dragged-in object?  If not, would it at least be possible to provide some pointers as to how I can achieve this?


Thanks
Ryszard
Rosi
Telerik team
 answered on 16 Dec 2010
1 answer
64 views
I'm porting from DataGridView to RadGridView and I am currently having problems with the validation logic in the RadGridView. I want to add the new item to the ViewModel collection directly after "Click here to add new item" has been invoked, but since the item has validation errors exposed through IDataErrorInfo, the RadGridView wont commit. How can I alter the behaviour of the RadGridView to commit new rows to the datasource directly after creation of a new row?
Maya
Telerik team
 answered on 16 Dec 2010
1 answer
692 views
How can I Wrap a Cell content in a Grid while Resizing the column. If a size of a colum goes smaller the cell text must be wrap in downward / Upward direction , So that whole text in a cell will be shown.
Maya
Telerik team
 answered on 16 Dec 2010
1 answer
80 views
Hi,

Is there any way to drag group separator to expand width of some specific groups important for end user?

Thanks,
Anatoly
George
Telerik team
 answered on 16 Dec 2010
1 answer
191 views
Hi.
The follow error exist in Docking control:
Insufficient memory to continue the execution of the program.

StackTrace:
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush() at
System.Windows.Media.Composition.DUCE.CompositionTarget.UpdateWindowsSetting
s(ResourceHandle hCompositionTarget, RECT windowRect, Color colorKey, Single
constantAlpha, MILWindowLayerType windowLayerType, MILTransparencyFlags
transparencyMode, Boolean isChild, Boolean isRTL, Boolean renderingEnabled,
Int32 disableCookie, Channel channel)
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean
enableRenderTarget, Nullable´1 channelSet)
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean
enableRenderTarget)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr IParam)
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam,
IntPtr Iparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd,
Int32 msg, IntPtr wParam, IntPtr wParam, IntPtr IParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
IntPtr IParam, 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)


Scenary: The application have three view using outlookbar control(outlookbar control doesn´t belong to telerick). Each outlookbar button load a wpf
project of dynamic way using reflexion.
When switch views appears the error (the render the view)
We had debugging and separating the controls. when the docking control was changed by a grid control  the error not appeared.

Platform is: 
 Application  WPF  Over Window 2003 Server sp2 and Framework 3.5 sp1-
Using Application as desktop remote application
RadControl Docking QA 1 or QA2 for 3.5 framework

I hope anwer
George
Telerik team
 answered on 16 Dec 2010
4 answers
300 views
Hi,

I have two radpanes in RadDocking control. I have set serialization tag for both the RadPanes but still ElementLoading event is not getting fired.

Here is code :

<

 

 

telerik:RadDocking x:Name="radDocking" PaneStateChange="radDocking_PaneStateChange" ElementLoading="radDocking_ElementLoading">

 

 

 

 

<telerik:RadSplitContainer x:Name="radSplitContainer" InitialPosition="DockedRight" telerik:RadDocking.SerializationTag="splitcontainer">

 

 

 

 

<telerik:RadPaneGroup x:Name="radPaneGroup" AllTabsEqualHeight="True" telerik:RadDocking.SerializationTag="Group">

 

 

 

 

<telerik:RadPane x:Name="radPane1" Header="Pane 1" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="Pane1" >

 

 

 

 

<TextBlock Text="Pane 1"/>

 

 

 

</telerik:RadPane>

 

 

 

 

<telerik:RadPane x:Name="radPane2" Header="Pane 2" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="Pane2" >

 

 

 

 

<TextBlock Text="Pane2"/>

 

 

 

</telerik:RadPane>

 

 

 

 

</telerik:RadPaneGroup>

 

 

 

 

</telerik:RadSplitContainer>

 

 

 

 

</telerik:RadDocking>


Please help me out.

 

George
Telerik team
 answered on 16 Dec 2010
5 answers
104 views
I am geting a null ref exception when draging appointments

{"Object reference not set to an instance of an object."}
  
at Telerik.Windows.Controls.ScheduleViewBase.HaveSameElements[T](IEnumerable`1 c1, IEnumerable`1 c2) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.DragDrop.cs:line 228
   at Telerik.Windows.Controls.ScheduleView.Slot.Equals(Object obj) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\Slot.cs:line 80
   at Telerik.Windows.Controls.ScheduleViewBase.HaveSameElements[T](IEnumerable`1 c1, IEnumerable`1 c2) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.DragDrop.cs:line 228
   at Telerik.Windows.Controls.HighlightPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\HighlightDecorationsPanel.cs:line 82
   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.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at Escalasv01.App.Main() in C:\Work\BT\Escalasv0.1\Escalasv0.1\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(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.Threading.ThreadHelper.ThreadStart()
nuno
Top achievements
Rank 1
 answered on 16 Dec 2010
4 answers
370 views
Hi,

Hope someone can help me with this issue that I'm facing right now.

I'm trying to implement some behaviours in calculated columns (which are not Expression columns by the way). The goal is to have the last column value returned by the business layer based in the other column values. 

I'm actually setting the DataContext as a DataView (DataTable.DefaultView), but when I try to programmatically make any change to the DataContext, the last column value doesn't actually refresh (visually) until I change to another row. 

I thought that using DefaultView, and since it implements the INotifyPropertyChanged, the row being edited would be refreshed automatically. But in fact that doesn't happen in this case.

Converters and Expression columns are not exactly an option (at least I think so), since I send the grid's DataContext back to my Business layer where I set the last column value for each row.

Help would be extremely appreciated.



Miguel Peixoto
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
181 views

Hi,

simple questions...

1) are there any limitations on the sand chart on number of layers it can have?
2) Can we have a context menu on the bar chart or sand chart menu?
3) On the sand chart, can we have a drill down chart on mouse hover?
4) can sub charts (on mouse hover to chart series) have drilldown?

Thanks,

Evgenia
Telerik team
 answered on 16 Dec 2010
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?