Telerik Forums
UI for WPF Forum
2 answers
77 views
I just noticed that even on a RadDiagram with no Shapes there appears to be very small black spot.
This is most visible when you set the Background of the RadDiagram to White and turn off the grid visibility.
You may need to zoom quite a way into the diagram to see this.  If you do, it appears as a Black Circle.

Here is how I am creating my empty RadDiagram in code behind:
   backgroundColor is Colors.White
   isEditingEnabled is false
private RadDiagram CreateDiagram(Color backgroundColor, bool isEditingEnabled)
{
    var diagram = new RadDiagram
    {
        IsBackgroundSurfaceVisible = false,
        Background = new SolidColorBrush(backgroundColor),
        IsPanEnabled = false,
        IsZoomEnabled = false,
        AllowCopy = false,
        AllowCut = false,
        AllowDelete = false,
        AllowDrop = false,
        ActiveTool = MouseTool.PointerTool,
        AllowPaste = false,
        IsDraggingEnabled = isEditingEnabled,
        IsResizingEnabled = isEditingEnabled,
        IsRotationEnabled = false,
        IsConnectorsManipulationEnabled = isEditingEnabled,
        IsManipulationAdornerVisible = isEditingEnabled,
        IsManipulationEnabled = isEditingEnabled,
        SelectionMode = isEditingEnabled ? SelectionMode.Single : SelectionMode.None,
        IsSnapToGridEnabled = false,
        IsSnapToItemsEnabled = false,
    };
    diagram.Clear();
    DiagramAnimations.SetIsZoomAnimationEnabled(diagram, false);
    ScrollViewer.SetHorizontalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
    ScrollViewer.SetVerticalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
 
    return diagram;
}


Alan
Top achievements
Rank 1
 answered on 15 May 2013
1 answer
126 views
Hello,

I would like to load data into the back stage only if the user chooses to open the back stage and so would ideally subscribe to an open event but I cannot see one. Is this true? If so, how is the best way to achieve this.

Thanks.
Kiril Vandov
Telerik team
 answered on 15 May 2013
4 answers
245 views
I have a collection of RadDiagram items I need to print out on a single page.
I also need to preview it in a View.
I have placed my RadDiagram items in cells in a Grid for each page and I want to print.
Everything works great when viewing this in a XAML view.

For printing, I take the collection of Grids (pages) and create a FixedPage for each Grid (page) and a FixedDocument to contain all
the pages.
I then use PrintDialog's PrintDocument() method.
I can't use Telerik's Printing utilities as they support only one RadDiagram and no layout.

If the size (Width & Height) of my RadDiagram is less than or equal to the size of the Grid cell,
I get an extra Scroll bar on the right and bottom sides of each RadDiagram on the page.
As I'm not embedding the RadDiagram inside of a ScrollViewer and I don't see these scroll bars when I view it on the screen,
I don't know where this is coming from.

To prove it is RadDiagram causing this, I have substituted a simple Rectangle control in place of the RadDiagram and the 
scroll bars go away.  I have also tried an empty RadDiagram and I also get the scroll bars.

I have attached a picture of one RadDiagram in a Grid being viewed and the same Grid being printed to show the scroll bars.

My questions are:
  * Why am I getting the scroll bars?
  * How do I turn them off?

Thanks,
 Alan
Hristo
Telerik team
 answered on 15 May 2013
1 answer
96 views
Hi,

In a wpf application i have seen the numericupdown control (I think so) has a + and - button on either side to change value. How to add a control like that?

Thanks,
Ivy
Shinu
Top achievements
Rank 2
 answered on 15 May 2013
5 answers
265 views
How to dynamically give vertical scroll bar inside RadMenuItem. Below is my code.

      RadMenuItem subMenu = new RadMenuItem();
                    foreach (GridViewColumn column in grid.Columns)
                    {
                        subMenu = new RadMenuItem();
                 subMenu.Header = column.Header;        
                        subMenu.IsCheckable = true;
                        subMenu.IsChecked = true;
                        Binding isCheckedBinding = new Binding("IsVisible");
                        isCheckedBinding.Mode = BindingMode.TwoWay;
                        isCheckedBinding.Source = column;
                        subMenu.SetBinding(RadMenuItem.IsCheckedProperty, isCheckedBinding);
                        item.Items.Add(subMenu);
                    }
System.Windows.Controls.ScrollViewer.SetVerticalScrollBarVisibility(subMenu, System.Windows.Controls.ScrollBarVisibility.Visible);
Sravanthi
Top achievements
Rank 1
 answered on 15 May 2013
0 answers
131 views
Hi,

i get an error when I try to create a Org Chart in class:

public class GraphSource : ObservableGraphSourceBase<Node, Link>


SOLVED !!!!!


Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 asked on 15 May 2013
1 answer
100 views
Hi,

I want to change the single click to double to navigate page? Possible solution?

Thanks,
Henry.
Shinu
Top achievements
Rank 2
 answered on 15 May 2013
1 answer
198 views
Hi There,

I am using your WPF GridView (Version 2013.1.403.40), I need horizontal scroll using mouse. I have a mouse with horizontal scroller wheel. How can we do this easily?


Regards,
Sourabh Bose
Nick
Telerik team
 answered on 15 May 2013
5 answers
479 views

Hi I use the element (similar datepicker). When I change the date using the specific button the event SelectedDateChanged is raised. (correct) When I change the date writing directly in textbox the event SelectedDateChanged is not raised. (incorrect)

Do you know this problem? and Do you know the solution?

Thanks

Georgi
Telerik team
 answered on 15 May 2013
3 answers
193 views
When I change from Windows7Theme to Windows8Theme, I loose my header text on GroupBox controls and on Labels.  Pictures attached.
Tina Stancheva
Telerik team
 answered on 15 May 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?