Telerik Forums
UI for WPF Forum
2 answers
176 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
217 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
286 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
65 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
144 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
219 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
158 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
1 answer
215 views
Hi telerik team
I request you to add persian(Hijri) calendar to your controls because its very necessary for iranians.
I saw many request from you and you just say WE HAVE NOT PLAN TO ADD PERSIAN CALENDAR!!!
I realy dont understand why???
Yana
Telerik team
 answered on 02 Aug 2011
3 answers
148 views
Hello, I have the following problem:
When you double click a row or press enter, the RowActivated event fires and gives you a RowEventArgs.
However, in the case of the enter key, the RowEventArgs has Row=null.
How can I find out which row was selected?

Thanks.
Maya
Telerik team
 answered on 02 Aug 2011
3 answers
95 views
Hi,
I have a problem that is, when I need to update any row in the grid I need to expand that row, but after saving it I need to rebind the grid to load it with latest data, because of this my expanded row collapses, thats what I don't want.
I need the expanded row expanded after the rebind (only one row could be expanded at a time).

Please help me out as soon as possible.

Thanks
Nitin
Nitin
Top achievements
Rank 1
 answered on 02 Aug 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?