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?
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
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
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
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
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
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.
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