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

I have looked into this, and it seems that the RadDiagramNavigationPane can not accept additional buttons? I would like to add a Print button to it, allowing me to print the actual canvas...is this possible?

/HH
Milena
Telerik team
 answered on 19 Mar 2015
5 answers
121 views
Hi guys,

Well, my questions is short as subject: is there possibility to open filter dialog by pressing for instance ALT+C, instead of clicking the filter icon via mouse.

thanks,
Julian
Kasper
Top achievements
Rank 1
 answered on 19 Mar 2015
5 answers
441 views
Hi,
I have some strange behavior. I can not reproduce the error, all I can say is that the error only occurs on my Samsung Tablet Windows 8.1 2 GB of RAM (Touch).

Binary Version: 2014.3.1202.45

Exception Type: System.InvalidOperationException 
Message: Recursive call to Automation Peer API is not valid
Stack trace:
System.Windows.Automation.Peers.AutomationPeer.GetChildren()
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)
at MS.Internal.Automation.ElementProxy.StaticWrap(AutomationPeer peer, AutomationPeer referencePeer)
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
at Telerik.Windows.Automation.Peers.RibbonViewAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)
at System.Windows.Automation.Peers.AutomationPeer.AutomationPeerFromInputElement(IInputElement focusedElement)
at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
at System.Windows.UIElement.Focus()
at System.Windows.Documents.TextEditorMouse.MoveFocusToUiScope(TextEditor This)
at System.Windows.Documents.TextEditorMouse.OnMouseDown(Object sender, MouseButtonEventArgs e)
at System.Windows.Controls.Primitives.TextBoxBase.OnMouseDown(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
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.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
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)

Can you please help me with that error.

Regards Markus


Kiril Vandov
Telerik team
 answered on 19 Mar 2015
6 answers
1.3K+ views
I am very confused about RadDateTimePickers formatting behavior. When we set DateSelectionMode to Year, why does it still create a complete date with the selected year but also with day/month from todays date?! This makes absolutely no sense to me. It should display the year only cause that's what my users select - a year, not a full date.

Searching the forums I found several posts showing that we can set a new Culture to define custom ShortDatePattern and LongDatePattern. I did this and changed both formats to "yyyy". Now the control is displaying the year only (yeeha!) but it seems this format is not correct date Format for RadDateTimePickers parser. Checking the ParseDateTime event I can see that e.IsParsingSuccessful is always false now.

So here's the question: How to select a year (yyyy) or month & year (mm/yyyy), display exactly what I've selected in the control's input box AND parse this value as a correct date in code behind?
Nasko
Telerik team
 answered on 19 Mar 2015
7 answers
283 views
Hi team,
I've read quite a lot of documentation of GridView, however could not find a tutorial showing how to create a custom filter control outside of GridView, for example, a select control corresponding some specific column. And the select control is under the GridView. It's not part of the GridView. It's an independent control.
How to do that?

Thanks,
-Jingfei
Jackey
Top achievements
Rank 1
 answered on 19 Mar 2015
4 answers
129 views
Hello,

When using SelectionMode = Multiple, Is it possible to toggle the selected state of the item by clicking it?

Thanks in advance,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 18 Mar 2015
2 answers
160 views
Hi,
I have a problem again :))) . Diagram has 1360 items and 1481 connections. When I connection type is polyline and RouteConnection property is true, throw ContextSwitchDeadlock Exception. If I make RouteConnection property false, then it doesn't throw exception, and working without any problem. How can I solve it?

Thanks in advance.

Exception Message:
"The CLR has been unable to transition from COM context 0x20e480 to COM
context 0x20e5f0 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a very long running operation without pumping Windows
messages. This situation generally has a negative performance impact and
may even lead to the application becoming non responsive or memory
usage accumulating continually over time. To avoid this problem, all
single threaded apartment (STA) threads should use pumping wait
primitives (such as CoWaitForMultipleHandles) and routinely pump
messages during long running operations."
Mahmut
Top achievements
Rank 1
 answered on 18 Mar 2015
1 answer
159 views
Hi All

I try to build sqlDiagram, I have TableShape sample code. How can I use scrollview in TableShape? I want to scroll TableShape rows.
Petar Mladenov
Telerik team
 answered on 18 Mar 2015
1 answer
225 views
When I create my shapes, I'm changing the style of the Connections to look like the first image where they say "True" and "False". The function CreateTrueConnection shows the properties I'm setting. When I save and then reload the diagram it looks like the 2nd picture, which only retains the green and red colors, but none of the other styling and more importantly NOT the Name property, which I use in function GetTrueTargetRow to figure out my workflow in code. How do I serialize that information into the diagram so it will reload the same way?

public
static void CreateTrueConnection(RadDiagram Diagram, RadDiagramShape Shape, String Label = "")
{
    RadDiagramConnection tc = new RadDiagramConnection();
 
    tc.Stroke = Brushes.Green;
    tc.StrokeThickness = 2;
    tc.AllowDelete = true;
    ((Telerik.Windows.Diagrams.Core.IDiagramItem)tc).Name = "TrueConnection";
    tc.SourceConnectorPosition = Telerik.Windows.Diagrams.Core.ConnectorPosition.Bottom;
    tc.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline;
 
    tc.StartPoint = new Point(Shape.Connectors["Bottom"].AbsolutePosition.X, Shape.Connectors["Bottom"].AbsolutePosition.Y);
    tc.EndPoint = new Point(Shape.Connectors["Bottom"].AbsolutePosition.X, Shape.Connectors["Bottom"].AbsolutePosition.Y + 100);
    tc.TargetCapType = Telerik.Windows.Diagrams.Core.CapType.Arrow2Filled;
    tc.Source = Shape;
 
    // Add the "True" Label
    if (Label != "")
    {
        System.Windows.Controls.Border brdr = new System.Windows.Controls.Border();
        System.Windows.Controls.Label lbl = new System.Windows.Controls.Label();
 
        lbl.Background = Brushes.Green;
        lbl.Foreground = Brushes.White;
        lbl.FontWeight = FontWeights.Bold;
        lbl.HorizontalContentAlignment = HorizontalAlignment.Center;
        lbl.Content = Label;
 
        brdr.BorderBrush = Brushes.DarkGreen;
        brdr.BorderThickness = new Thickness(2.0);
        brdr.CornerRadius = new CornerRadius(3.0);
        brdr.Child = lbl;
 
        tc.Content = brdr;
    }
 
    Diagram.AddConnection(tc);
}

public static dsdSteps.BIEFlowchartStepRow GetTrueTargetRow(dsdSteps StepData, IShape Shape)
{
    dsdSteps.BIEFlowchartStepRow trueTargetRow = null;
    foreach (var con in Shape.OutgoingLinks)
    {                       
        //|| ((RadDiagramConnection)con).Stroke == Brushes.Green  <-- Tried looking at the connection color to know if it's true etc... didn't work
        if ((con.Name == "TrueConnection" || con.Name == "StartConnection") && con.Target != null)
        {
            trueTargetRow = (from x in StepData.BIEFlowchartStep
                             where x.GUID == ((RadDiagramShape)con.Target).Id
                             select x).FirstOrDefault();
        }
    }
    return trueTargetRow;
}

Pavel R. Pavlov
Telerik team
 answered on 18 Mar 2015
4 answers
264 views
Hello Group. We would like to have the ToggleButton on a form having the same style as listed in the Grid. Currently we have the Theming set to Windows 8 and then the togglebutton is filled solid with the win-8 color. Now we would like it to have a inner border in win-8 color style.
What I did I extracted the style into our own styling dictionary file and my button is yellow (?). This yellow color is verywhere so just replacing the colow does not solve this.
Can someone supply me the style for the toggle button like the one on in the Grid (having inner border)?  
Thanks,

    Richard
Richard
Top achievements
Rank 1
 answered on 18 Mar 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?