Telerik Forums
UI for WinForms Forum
2 answers
97 views

Hello,

I have a problem to handle RadTileElement when setting the TileGroupElement.CellSize property.

I create a TileGroupElement and set the RowCount Property to 3, then i add 3 RadTileElements.

I create a second TileGroupElement, set the RowCount Property to 3, the CellSize to 250;50 and then i add 3 RadTileElement.

When I launch the project, the two groups have different behavior.

On the first one, i can do everything, i can position RadTileElement where i want.

On the second one, the behavior is really different. If i move the RadTileElements the position management is a mystery, it is impossible to rearrange them in columns when they have move to row.

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class RadForm1
    Inherits Telerik.WinControls.UI.RadForm
 
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
 
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
 
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer. 
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadPanorama1 = New Telerik.WinControls.UI.RadPanorama()
        Me.TileGroupElement1 = New Telerik.WinControls.UI.TileGroupElement()
        Me.TileGroupElement2 = New Telerik.WinControls.UI.TileGroupElement()
        Me.RadTileElement1 = New Telerik.WinControls.UI.RadTileElement()
        Me.RadTileElement4 = New Telerik.WinControls.UI.RadTileElement()
        Me.RadTileElement5 = New Telerik.WinControls.UI.RadTileElement()
        Me.RadTileElement6 = New Telerik.WinControls.UI.RadTileElement()
        Me.RadTileElement2 = New Telerik.WinControls.UI.RadTileElement()
        Me.RadTileElement3 = New Telerik.WinControls.UI.RadTileElement()
        CType(Me.RadPanorama1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadPanorama1
        '
        Me.RadPanorama1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.RadPanorama1.Groups.AddRange(New Telerik.WinControls.RadItem() {Me.TileGroupElement1, Me.TileGroupElement2})
        Me.RadPanorama1.Location = New System.Drawing.Point(0, 0)
        Me.RadPanorama1.Name = "RadPanorama1"
        Me.RadPanorama1.RowsCount = 3
        Me.RadPanorama1.ShowGroups = True
        Me.RadPanorama1.Size = New System.Drawing.Size(1183, 435)
        Me.RadPanorama1.TabIndex = 0
        Me.RadPanorama1.Text = "RadPanorama1"
        '
        'TileGroupElement1
        '
        Me.TileGroupElement1.Items.AddRange(New Telerik.WinControls.RadItem() {Me.RadTileElement1, Me.RadTileElement2, Me.RadTileElement3})
        Me.TileGroupElement1.Name = "TileGroupElement1"
        Me.TileGroupElement1.RowsCount = 3
        Me.TileGroupElement1.Text = "TileGroupElement1"
        '
        'TileGroupElement2
        '
        Me.TileGroupElement2.CellSize = New System.Drawing.Size(250, 50)
        Me.TileGroupElement2.Items.AddRange(New Telerik.WinControls.RadItem() {Me.RadTileElement4, Me.RadTileElement5, Me.RadTileElement6})
        Me.TileGroupElement2.Name = "TileGroupElement2"
        Me.TileGroupElement2.RowsCount = 3
        Me.TileGroupElement2.Text = "TileGroupElement2"
        '
        'RadTileElement1
        '
        Me.RadTileElement1.Name = "RadTileElement1"
        Me.RadTileElement1.Text = "RadTileElement1"
        '
        'RadTileElement4
        '
        Me.RadTileElement4.Name = "RadTileElement4"
        Me.RadTileElement4.Text = "RadTileElement4"
        '
        'RadTileElement5
        '
        Me.RadTileElement5.Name = "RadTileElement5"
        Me.RadTileElement5.Row = 1
        Me.RadTileElement5.Text = "RadTileElement5"
        '
        'RadTileElement6
        '
        Me.RadTileElement6.Name = "RadTileElement6"
        Me.RadTileElement6.Row = 2
        Me.RadTileElement6.Text = "RadTileElement6"
        '
        'RadTileElement2
        '
        Me.RadTileElement2.Name = "RadTileElement2"
        Me.RadTileElement2.Row = 1
        Me.RadTileElement2.Text = "RadTileElement2"
        '
        'RadTileElement3
        '
        Me.RadTileElement3.Name = "RadTileElement3"
        Me.RadTileElement3.Row = 2
        Me.RadTileElement3.Text = "RadTileElement3"
        '
        'RadForm1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(1183, 435)
        Me.Controls.Add(Me.RadPanorama1)
        Me.Name = "RadForm1"
        '
        '
        '
        Me.RootElement.ApplyShapeToControl = True
        Me.Text = "RadForm1"
        CType(Me.RadPanorama1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
 
    End Sub
 
    Friend WithEvents RadPanorama1 As Telerik.WinControls.UI.RadPanorama
    Friend WithEvents TileGroupElement1 As Telerik.WinControls.UI.TileGroupElement
    Friend WithEvents RadTileElement1 As Telerik.WinControls.UI.RadTileElement
    Friend WithEvents RadTileElement2 As Telerik.WinControls.UI.RadTileElement
    Friend WithEvents RadTileElement3 As Telerik.WinControls.UI.RadTileElement
    Friend WithEvents TileGroupElement2 As Telerik.WinControls.UI.TileGroupElement
    Friend WithEvents RadTileElement4 As Telerik.WinControls.UI.RadTileElement
    Friend WithEvents RadTileElement5 As Telerik.WinControls.UI.RadTileElement
    Friend WithEvents RadTileElement6 As Telerik.WinControls.UI.RadTileElement
End Class

 

My question is how can i handle RadTileElement of the second group like those in the first one ?

I am using VB.Net radcontrols 2016 Q3 SP1.

Thanks in advance for helping me.

Best regards.

OD
Top achievements
Rank 1
 answered on 02 Feb 2017
1 answer
219 views

What can be the reason that some pdf (less size and less pages) loads much slower than others.
I'm using a FileStream to open the pdf and then I copy the FileStream to a MemoryStream and I LoadDocument with this MemoryStream.

I have a pdf ==> 1272 kb that exists of 41 pages
I have a pdf ==> 46 kb that exists of 1 page
But the pdf of 1272 kb is much quicker shown in the PdfViewer then the one from 46 kb?
What can be the reason of this??

Thanks

Didier

Hristo
Telerik team
 answered on 02 Feb 2017
3 answers
135 views

 Hello,

I'm trying to handle the TileGroupElement.Click event but it is a mystery to me.

Thanks in advance for helping me.

Best regards.

OD
Top achievements
Rank 1
 answered on 01 Feb 2017
4 answers
155 views

I develop an WinForms application with the RadRibonForm.

In the Ribon I have  command tabs in which I display only an image and no text. In order to add some space between the TabsI have tried to disable autosize and specify manually the width of the tabs. If I set manually the size of all the tabs they disapear completely at run time ... If I leave one Tab in autosize then I see them correctly (with the exception of the Tab in autosize which is too narrow)

How can I solve this issue ?

 

thanks in advance

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 01 Feb 2017
3 answers
183 views
Hello everybody!

Using the Outlook ViewMode the PageView is able to hide and show buttons ("Show More/Fewer Buttons"). But if I restart the application the layout of the PageView is back to default. How can I save this state, or how can I get/set the PageViewPages, that have changed?

Kind Regards
Hristo
Telerik team
 answered on 01 Feb 2017
11 answers
459 views

Hi,

the new RadPropertyStore feature looks very promising. I want to build a PropertyGrid without binding to an .NET-Object but to a dynamic collection of Data. The RadPropertyStore is exactly what I need. But I have one Problem: According to Your WinForms PropertyGrid/Property Store-Demo the PropertyGridDropDownListEditor seems only work with enumerations. That is too static. I have e.g. a list of strings ("FrontWheelDrive", "RearWheelDrive", "AllWheelDrive"). The values ara stored in a Database and can differ.

Is it possible to use the PropertyGridDropDownListEditor with a list (or array) of strings or the like?

Michael

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Feb 2017
2 answers
129 views

I develop an WinForms applicatio with the RadRibonForm.

In the backstave view the Items are not left aligned (as per the attached image) it seems that they are centered aligned and I have looked at all proerties and spent hours but I havenot found how to make them left aligned

Thanks for your advice

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 01 Feb 2017
1 answer
130 views
How do I get the drag values (x,y coordinates) of a shape object as it is being dragged within the diagram?  I see there is a Drag event, but I am uncertain how to get the objects' position after a drag.
Dimitar
Telerik team
 answered on 01 Feb 2017
2 answers
271 views

 Hi,

Picture exported in wrong size to picture.image when creating RadChartView in AchiverReports10. Picture is cropped when adding Legend Title. Could you help me please in this question?

 Private Sub GroupFooter1_Format(sender As Object, e As EventArgs) Handles GroupFooter1.Format
      Dim rchv As New RadChartView
      rchv.Name = "rchv"
      rchv.ShowTitle = True
      rchv.Title = "Test"
      rchv.ChartElement.TitleElement.Font = New Font("Arial", 16)
      rchv.ShowToolTip = True
      rchv.ShowLegend = False
      rchv.Area.View.Palette = KnownPalette.Metro

      AddHandler rchv.LabelFormatting, AddressOf rcvQualityPie_LabelFormatting
      
      rchv.Series.Clear()
      rchv.AreaType = ChartAreaType.Pie
      rchv.ChartElement.AutoSize = True
      rchv.ShowSmartLabels = True
      rchv.ShowLegend = False

      Dim series As New PieSeries()

      For Each row As DataRow In _dtRejctResons.Rows
         series.DataPoints.Add(New Telerik.Charting.PieDataPoint(row("OsuusPerc"), row("RaakkiSelite")))
      Next

      series.DrawLinesToLabels = True
      series.SyncLinesToLabelsColor = True
      series.ShowLabels = True

      rchv.Series.Add(series)

      Dim sFileName As String = "exprtedChart1.png"
      Dim sFilePath As String

      sFilePath = System.IO.Path.GetTempPath & sFileName

      If File.Exists(sFilePath) = True Then
         File.Delete(sFilePath)
      End If
      rchv.ExportToImage(sFilePath, rchv.Size, System.Drawing.Imaging.ImageFormat.Png)
      Picture.Image = Image.FromFile(sFilePath)

End Sub

Private Sub rcvQualityPie_LabelFormatting(sender As Object, e As ChartViewLabelFormattingEventArgs)
      Dim pieElement As PiePointElement = DirectCast(e.LabelElement.Parent, PiePointElement)
      Dim dataPoint As PieDataPoint = DirectCast(pieElement.DataPoint, PieDataPoint)
      e.LabelElement.BackColor = Color.White
      e.LabelElement.BorderColor = Color.White
      e.LabelElement.Text = String.Format("{0}, " & "{1} %", dataPoint.LegendTitle, Math.Round(dataPoint.Percent, 0))
      e.LabelElement.Padding = New System.Windows.Forms.Padding(6, 0, -100, 0)

   End Sub

Kseniia
Top achievements
Rank 1
 answered on 01 Feb 2017
4 answers
239 views

I want to be able to show a link, but have the display text be something different.

This is what I want to see <a href="http://www.googe.com">Google</html>

What's the correct way to do that? Preferably without having to override some on row creating event.

Pavel
Top achievements
Rank 1
 answered on 31 Jan 2017
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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?