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

Reviewing the documentation and samples, I've noticed two different ways of associating a legend with a chart area. Given I have defined:

<telerik:ChartLegend x:Name="legend">

I can either associate with a chart area with LegendName:

<telerik:ChartArea LegendName="legend">

or bind it to the Legend property:

<telerik:ChartArea Legend="{Binding ElementName=legend}">

Which is the preferred way to associate a chart legend? Are there advantages/disadvantages with either way?

Kind regards,
Dave.
Peshito
Telerik team
 answered on 03 Aug 2011
3 answers
111 views

Hi,

I want to create special rows that have only one column (i.e. column span for a specific row).

So I created ControlTemplate with that single column, created a Style that change the template property to the new template and created RowStyleSelector that uses that template when needed. That worked but created a row that doesn't have the IndicatorPresenter at the start of the row.

You can see the picture.. 

Can I merge cells at the grid and stay with the default template?

Or how can I make sure that the IndicatorPresenter will appear with the same styles.

Vanya Pavlova
Telerik team
 answered on 03 Aug 2011
5 answers
262 views

I would like to generate the charts without actually showing it (in a WPF application), and then save them to image.

However, when I run, I hit  the InvalidOperationException

Sia
Telerik team
 answered on 03 Aug 2011
2 answers
168 views
Hi,

just was playing around with the new image editor. i'm using a custom ui like the one in the demo (the one with the image of the baseball player) and i was wondering if there is a way to set the height and width of the cropping rectangle to a specific size.i want to force the user to crop his images to a predifend size or at least aspect ratio. similar to the way you assign contact images on a iphone.

and one more question, how can a write the RadBitmap to a byte array for storing it in a DB?
UPDATE: OK, forget about the DB thing, just found the
Telerik.Windows.Media.Imaging.FormatProviders.BmpFormatProvider 

best regards
Michael
Mike
Top achievements
Rank 2
 answered on 03 Aug 2011
6 answers
202 views
Hi Telerik,

When using RadSchedueView, I'd like to use the predefined category list and assign a category to the appointment dynamically. This list is defined in RadScheduler. When I added these two references, it had name conflicts. How can I use this predefined list in ScheduleView?

Thanks.
Cheau
Supreet
Top achievements
Rank 1
 answered on 02 Aug 2011
2 answers
251 views
I am trying to make multiple changes to an observablecollection that is bound to a gridview.
Using linq to locate the items and then making changes.

It seems to work because I loop through in break mode and see it meeting the condition and setting the items Status value for the exact count of items that I am searching for, but I am not seeing changes reflect in gridview that has itemsource of the collection.

// grid.ItemSource = gridItemCollection (ObservableCollection<T>)
var itemsToUpdate = gridItemCollection.Where(item => item.Status.Equals(statusToChange));
foreach (var item in itemsToUpdate) item.Status = newStatus;

I assume since the collection is bound to the grid's ItemSource that it would update the grid automatically... does there need to be a manual update after the update takes place?

Is there a better approach for performance or clarity reasons?
Ivan Ivanov
Telerik team
 answered on 02 Aug 2011
2 answers
55 views

What is the property that controls the width of the Menu bar ?

This what I have:
  

<DockPanel>
     <k:Menu DockPanel.Dock="Top"  >
         <k:AddMenuItem Command="{Binding Path=CommandAdd}" />

But the Menu bar is only as wide as the menu items in it...  (?)

Thanks,

Michel
Top achievements
Rank 1
 answered on 02 Aug 2011
1 answer
123 views
I am running the Q2 version of Telerik Rad WPF and cannot open the xaml file Expressoin Blend 4. I have never tried it again, so I am wondering if I should be able to or not. The error I am getting is, The element "[RadTabControl]" could not be displayed because of a problem with Telerik.Windows.Controls.RadTabContol: Cannot create an instance of "RadTabControl".

The inner exception is
The type initializer for 'Telerik.Windows.Control.RadTabControl' threw an exception.

Below that is could not load type 'Telerik.Windows.Controls.ThemeResourceKey' from assembly 'Telerik.Windows.Controls, Version 2011.2.712.1040, Culture=Netral, PublicKeyToken= 5803cfa389c90ce7

Is this a configuration issue, or are the telerik controls just not compatable with Expression Blend 4?

Randy
Tina Stancheva
Telerik team
 answered on 02 Aug 2011
3 answers
209 views
Hello,
in order to fix another issue, I have upgraded to 2011.2.0725.40. My application used RadWindow.ShowModal and the second (!) window that is opened (after the first one is closed again) throws an exception as soon as the window is resized or dragged (both of which call BringToFront, as it seems). I noticed that in previous versions the window would get removed from the list of windows returned by RadWindowManager.GetWindows() as soon as ShowDialog() returns, in the newest version, it remains in the collection.

mscorlib.dll!System.Collections.Generic.List<System.__Canon>.RemoveAt(int index) + 0xe1 bytes  
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowHostBase.BringToFront() Line 59   C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.BringToFront() Line 44 C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.BringToFront() Line 530 C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragStart(System.Windows.Point globalMousePosition, bool isResize) Line 1057   C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragStart(System.Windows.Point globalMousePosition, bool isResize) Line 74 C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.TryBeginDragResize(System.IntPtr hwnd, bool isResizing) Line 301 C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleMoving(System.IntPtr hwnd, System.IntPtr wParam, System.IntPtr lParam, out bool handled) Line 498  C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Line 563 + 0x5f bytes C#
PresentationCore.dll!System.Windows.Interop.HwndSource.PublicHooksFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xcd bytes
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x13d bytes  
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x97 bytes   
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x5a bytes
WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x47 bytes   
WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) + 0x5d bytes   
WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xd2 bytes   
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x164 bytes   
[Native to Managed Transition] 
[Managed to Native Transition] 
WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x7e bytes  
[Native to Managed Transition] 
[Managed to Native Transition] 
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x208 bytes   
[Native to Managed Transition] 
[Managed to Native Transition] 
WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x7e bytes  
[Native to Managed Transition] 
[Managed to Native Transition] 
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x208 bytes   
[Native to Managed Transition] 
[Managed to Native Transition] 
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0x13a bytes
PresentationFramework.dll!System.Windows.Window.ShowHelper(object booleanBox) + 0x20f bytes
PresentationFramework.dll!System.Windows.Window.ShowDialog() + 0x5ae bytes 
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Open(bool isModal) Line 30 + 0x21 bytes   C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.ShowWindow(bool isModal) Line 615  C#
Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadWindow.ShowDialog() Line 415   C#

Update after further research: I have reproduced the problem in a sample application, and found that this only happens if I have my configuration set to Any CPU, which would execute in 64 bit in my case (Win7, 64bit). If I switch to x86, and enable break on any exception, I still get the exception, but the program continues without problems. My guess is that the exception ends up unhandled in x64 mode.

Any Ideas?

Regards,
Karin
Miroslav Nedyalkov
Telerik team
 answered on 02 Aug 2011
1 answer
125 views
Trying to figure out how to provide a control on a custom GridViewBoundColumnBase derived class to switch into edit mode for the cell. During non-edit mode, the contents is a clickable link. This makes it impossible to switch into edit mode. I'd like to just put a little button in the cell to switch to edit mode.

To do this, I need to figure out two things within the CreateCellElement method: whether the column is ReadOnly, and how to raise a BeginCellEdit event of some fashion. BeginEdit switches to edit mode for the row, but not for the cell.

Can ya'll help me out on either of these?
Ivan Ivanov
Telerik team
 answered on 02 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?