Telerik Forums
UI for WPF Forum
2 answers
106 views
Hi!

Is it possible to render the current page of PDFViewer as a bitmap?

Thanks!
Mi
Top achievements
Rank 1
 answered on 17 May 2013
1 answer
513 views
Hi,

I am trying the RadMasked input and i need to restrict the user from typing negative numbers or zero in the numeric textbox mask.

Needha Saran
Shinu
Top achievements
Rank 2
 answered on 17 May 2013
4 answers
179 views
Is it possible, and if so how, to replace the connection line.  For example, we would like to have a double line (instead of a single line).  We've tried changing the Stroke brush, but we did not have success when the orientation of the connection changed.  Thank you in advance.
Matt
Top achievements
Rank 1
 answered on 17 May 2013
3 answers
80 views
Hi,

I am working on the RadDatePicker control on Medium Trust environment and I am getting some error regarding security. I think there is bug with this control when working with Medium Trust Env.

I am getting the below error

05-13 23:16:39.088 [ERROR]%13%10AppDomain.BaseDirectory: <br>System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.%13%10   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)%13%10   <br><br>at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)%13%10   at System.Security.CodeAccessPermission.Demand()%13%10   at MS.Internal.SecurityHelper.DemandUnmanagedCode()%13%10   at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.SetHitTestable(Boolean hitTestable)%13%10   at 

There are other controls also which are not wotking on Medium Trust Enviorment
RadColorPicker, RadWindow

Please provide some solution for this.

Modified : I found that the controls which open any window (like RadDatePicker, RadWindow.Alert(), RadColorPicker, etc) they don't work on Medium Trust Level because to open window controls uses "mscorlib" dll which is prohibited in medium trust level. This is a bug in Telerik Controls please create a ticket for it.
Alek
Telerik team
 answered on 17 May 2013
1 answer
45 views
Is there a way to make the connections automatically go around the shapes?
Petar Mladenov
Telerik team
 answered on 17 May 2013
2 answers
139 views
This exception doesn't make any sense and it is happening all behind the scenes in Telerik code in another thread and crashes the application.

It is stating that Telerik.Windows.Controls.GridView.ColumnGroupDescriptor is not a Telerik.Windows.Data.IGroupDescriptor which is impossible.  If you review the ColumnGroupDescriptor code it extends GroupDescriptorBase, which implements IGroupDescriptor interface.  So that exception doesn't make any sense as it seems completely impossible for this to occur.

So I would think that the exception TEXT is wrong and something else is occurring.

I am using WPF 2013.1.0220.45 controls.

I hook up to the RadGridView's Grouping event that calls this method on a grouping attempt.

private void GridView_Grouping(object sender, GridViewGroupingEventArgs e)
{
    var columnGroupDescriptor = e.GroupDescriptor as ColumnGroupDescriptor;
 
    if (columnGroupDescriptor != null && searchResultsDataGrid.GroupDescriptors.Count == 0)
    {
        var functions = columnGroupDescriptor.Column.AggregateFunctions;
 
        if (functions.Count == 0)
            functions.Add(new CountFunction() { ResultFormatString = "({0})" });
    }
}

This doesn't directly throw any exceptions it just is the trigger that eventually causes it to be thrown elsewhere.

This by the way used to work just find in the 2010 Q3 release of the WPF controls and only occurs when upgrading from those to the latest 2013 release. As you can see this solution discussed in this thread.

Love to know more about what is going on under the covers and what may be really going on here to find the real issue so that a new solution can be found to provide the CountFunction as a user groups.  I looked at the latest docs and you can do all this in XAML but it forces it to group, it doesn't show how to do set these aggregate functions to be used only when a USER triggers grouping which is the goal to provide group aggregated data for what the user is doing.

System.ArgumentException was unhandled
  HResult=-2147024809
  Message=The value "Telerik.Windows.Controls.GridView.ColumnGroupDescriptor" is not of type "Telerik.Windows.Data.IGroupDescriptor" and cannot be used in this generic collection.
Parameter name: value
  Source=WindowsBase
  ParamName=value
  StackTrace:
       at System.ThrowHelper.ThrowWrongValueTypeArgumentException(Object value, Type targetType)
       at System.Collections.ObjectModel.Collection`1.System.Collections.IList.Insert(Int32 index, Object value)
       at Telerik.Windows.Data.CollectionHelper.Insert(IList target, IEnumerable newItems, Int32 startingIndex, IEqualityComparer itemComparer)
       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.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(IGroupDescriptor descriptor, Nullable`1 insertionIndex, GroupingEventAction action)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass3e.<RequestGrouping>b__3d()
       at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.RequestGrouping(IGroupDescriptor descriptor, Nullable`1 insertionIndex, GroupingEventAction action)
       at Telerik.Windows.Controls.GridView.DragDropController.OnGroupPanelDrop(Object sender, DragEventArgs e)
       at Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs)
       at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e)
       at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDrop(Object sender, DragEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
       at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)
       at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
       at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
       at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects)
       at Telerik.Windows.DragDrop.DragDropManager.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects, DragDropKeyStates initialKeyState, Object dragVisual, Point relativeStartPoint, Point dragVisualOffset)
       at Telerik.Windows.DragDrop.DragInitializer.StartDrag()
       at Telerik.Windows.DragDrop.DragInitializer.StartDragPrivate(UIElement sender)
       at Telerik.Windows.DragDrop.DragInitializer.DragSourceOnMouseMove(Object sender, MouseEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(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.LegacyInvokeImpl(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.Window.ShowHelper(Object booleanBox)
       at System.Windows.Window.ShowDialog()
Rodney Foley
Top achievements
Rank 1
 answered on 16 May 2013
1 answer
107 views
Hi,

I'm binding listbox ItemsSource with oepenaccess, how to sync RadListBox and Database for example if remove from listbox selected item removed from database if add item in listbox added in database.

Thanks.
Yana
Telerik team
 answered on 16 May 2013
3 answers
66 views
Hi Team,

We are using Telerik controls for designing the UI of our application and CUIT for testing the UI.

In the UI design, we are hosting a control inside RadDocking.DocumentHost. The code looks as below:
 	<telerik:RadDocking.DocumentHost>
             <uc:UserControl1 Name="UserControl" />
        </telerik:RadDocking.DocumentHost>

We are trying to automate the above control(UserControl) and there we were facing issues with identification of the control(
UserControl) placed inside the DocumentHost.This is a blocking issue.

Could anyone help in providing a solution to go ahead with the automation of the control in the mentioned scenario?

Thanks in advance,
Rajesh.



Georgi
Telerik team
 answered on 16 May 2013
4 answers
99 views
Hi,

I want to modify the default design of GroupItem in RedGridView control. Please have a look at image attach to understand exact requirement.

Current Design

Accommodation

Accommodation

Column2

Column3

Column4

Accommodation

Column2

Column3

Column4

Accommodation

Column2

Column3

Column4

Contingency

Contingency

Column2

Column3

Column4

Contingency

Column2

Column3

Column4

Meals

Meals

Column2

Column3

Column4

Meals

Column2

Column3

Column4


Expected Design

Accommodation

Column2

Column3

Column4

Column2

Column3

Column4

Column2

Column3

Column4

Contingency

Column2

Column3

Column4

Column2

Column3

Column4

Meals

Column2

Column3

Column4

Column2

Column3

Column4


Can please someone let me know that design can be achieved or not and do I need to modify existing template or it can be done with some properties?

Thank you
Max
Top achievements
Rank 1
 answered on 16 May 2013
1 answer
122 views
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:Telerik_Windows_Controls_Primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
                    >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
  
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="{x:Type telerik:RadPaneGroup}" x:Key="StandardPaneGroup">
  
        <Setter Property="Background" Value="#1C1C1C"></Setter>
        <Setter Property="BorderBrush" Value="#1C97EA"/>
          
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:PaneHeader}">
                    <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="true" Height="23">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="25"/>
                        </Grid.ColumnDefinitions>
                          
                    </Grid>
                </ControlTemplate>
                     
            </Setter.Value
        </Setter>
          
    </Style>
</ResourceDictionary>

I am creating an application where it can have the docking functionality. SO I choosed telerik controls for it as it makes my work simple.

I am facing the issues while setting the styles for Header in the RadPane. I am createing RadPane's dynamically through a click event of a  menu Item.  I want to set a style for RadPane header,border of my own  where I Can use it all over  my application.  I am confused either to write styles for RadPane or RadPane group or PaneHeader.

Attached file is the sample of my application created using the general WPF controls like Menu, Tabcontrol. Created styles

Masha
Telerik team
 answered on 16 May 2013
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?