Telerik Forums
UI for WinForms Forum
2 answers
101 views

Hi,

    I have 3 ChartViews on a form, I wish to export each to a separate Image.

I would like my routine to be generic so I can reuse it for many Chart sets.

I am trying the following.

foreach (ChartView x in PnlCharts.Controls.OfType<ChartView>())
            {
                x.ExportToImage();
            }

However the ExportToImage Method is not available.  It only seems to be available if I directly reference the instance inserted into the form.

eg ChartView1.ExportToImage();

Am I missing something here?

Why can I export from the instance, but not from the same instance when it is contained within a list?

kieran
Top achievements
Rank 2
 answered on 19 Dec 2020
2 answers
144 views

Hello

is it posible to programmatically set the position of the popupcontainer at the opening event ?
I have not found anything about this in the documentation

and what is the allowautomaticscrolltocontrol property ?

Thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 18 Dec 2020
1 answer
246 views

     Hello,   I'm new to C# and UI design.     I have a broad question as I'm just starting out.

     I'm creating a desktop app with Visual Studio.   The dashboard will have multiple tabs, each loading a form where the user can enter different settings.   What is   the best way to save that info when the user is navigating back and forth between forms.    The info is being entered into using comboboxes, textboxes and updown boxes.     I've just started playing around and when I move from one tab to another and then return to the original form,  the previously entered data/selections are cleared.     I know I can do this by saving the selection to static variables and then reloading them each time the form is accessed.   I also know that static variables are said to be avoided.      

 

any info to point me in the right direction is appreciated.  

 

thanks,  

Rog

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Dec 2020
1 answer
190 views

Hello! I'm new to the panorama and didn't dive into the code yet, so I might ask some foolish question - sorry in advance.

 

Question 1. I see in the panorama demo that if the user drags and drop the tiles, changing their order and position, the rest of the tiles are automatically rearranged. Is this done in the demo code, or is it a method of the panorama? 

Is it possible to rearrange automatically the tiles after changing the size of on of the tiles? (I saw a thread where it was said that we have to do it manually, but it was in 2014, so maybe...)

 

Question 2. Is it possible for the user to resize the tiles with the mouse - drag from the right bottom corner for example? I guess if it is not an option of the control, there are still some other possibilities-we can check MouseOver, see if the position of the mouse is at the corner of a tile, change the cursor to indicate this<->, manage mouse click etc 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Dec 2020
3 answers
259 views

I am trying to drag a text item from a Radgridview and drop onto a Node of RadTreeView. I have a custom code that is executed when it is dropped onto the node. My problem is, my treeView has around 200 nodes. I want the treeview to scroll down automatically, when the mouse is moved over ( to the visible last node), with the dragged item. How do I achieve this? Any help will be greatly appreciated.

 

Thanks,

Ranjitha

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2020
3 answers
318 views
Hi,

Is there a way to hide the Expand/Collapse button and the recover the space it takes? I would be replacing its functionality with code that expands and collapses the panel, i.e. no need for the button..

Thank you
Ali
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2020
2 answers
96 views
How can you set so that the text is not lit when the control receives the focus?
Eusebio
Top achievements
Rank 1
Veteran
 answered on 16 Dec 2020
2 answers
197 views

Hi,

Am trying to do the simplest of things in winforms/vb using the RadDiagram .. 

My use case is simply changing the color of a shape when the mouse enters it and back again when it leaves it. 

I have been experimenting with the events and their behaviors and cannot explain/figure out the following :

- mouse leave event fires correctly on the boundary of the shape (works as expected)

- mouse enter event fires only when the shape is selected and when touching the connector borders (the four default ones - up/down/left/right). the mouse changes to resize cursor when touching the four corner connectors

Below is my simple test code - 

Imports System.Globalization
Imports System.Math
Imports System.Drawing.Drawing2D
Imports System.Drawing.Color
Imports Telerik.Windows
Imports Telerik.Windows.Diagrams.Core
Imports Telerik.WinControls.UI
Imports Telerik.WinControls.UI.Diagrams
 
Public Class RadForm1
    Public Sub New()
 
        ' This call is required by the designer.
        InitializeComponent()
 
        ' Add any initialization after the InitializeComponent() call.
 
    End Sub
 
    Private Sub NewItemToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles NewItemToolStripMenuItem.Click
        Dim shape As LayoutShape = New LayoutShape()
        RadDiagram1.AddShape(shape)
    End Sub
 
 
    Private Sub RadDiagram1_ShapeClicked(sender As Object, e As ShapeRoutedEventArgs) Handles RadDiagram1.ShapeClicked
        Dim shape As LayoutShape = TryCast(e.Shape, LayoutShape)
 
        If (shape IsNot Nothing) Then
            shape.BackColor = Green ' reset
        End If
    End Sub
 
 
End Class
 
Public Class LayoutShape
    Inherits RadDiagramShape
 
    Public Sub New()
        IsEditable = False
        Shape = New Telerik.WinControls.RoundRectShape(5)
        AutoSize = False
        BorderBrush = New System.Drawing.SolidBrush(System.Drawing.Color.Red)
        ShouldHandleMouseInput = True
        SetBounds(0, 0, 100, 25)
        BackColor = Green
        Position = New Point(100, 100)
        IsEditable = False
        AutoToolTip = False
        NotifyParentOnMouseInput = True
 
    End Sub
 
 
    Public Sub LayoutShape_MouseLeave(sender As Object, e As EventArgs) Handles Me.MouseLeave
        Dim shape As LayoutShape = TryCast(sender, LayoutShape)
 
        shape.BackColor = Blue
    End Sub
 
    Private Sub LayoutShape_MouseEnter(sender As Object, e As EventArgs) Handles Me.MouseEnter
        Dim shape As LayoutShape = TryCast(sender, LayoutShape)
 
        shape.BackColor = Yellow
    End Sub
 
End Class
Milan
Top achievements
Rank 1
 answered on 15 Dec 2020
1 answer
112 views

Greetings,

Is it possible to customize RadPrintSettingsDialog's ToolCommandBar items programmatically ? For instance, hiding Print Settings button, or just showing Print button and ...  (before runtime) ?

I have the same question with Print Settings Dialog. How to customize the Print Settings Dialog items in aspect of setting visibility of items ?

 

Thanks in advance.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2020
2 answers
211 views

Hi,

I have a GridView with Row details as from https://www.telerik.com/support/code-library/row-details-grid-for-q3-extended

Is it possible to make button of GridViewCommandColumn with height of row+details? See attachment. 

I have tried to add new RadButtonElement in CellFormatting event, but still it has height of the row...

If no - perhaps it is possible to add button to row details? Idea is to make bigger button

Thanks

Alex

 

Alex Dybenko
Top achievements
Rank 2
 answered on 11 Dec 2020
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?