Telerik Forums
UI for WinForms Forum
7 answers
313 views

With High DPI displays increasingly appearing in corporate environments, it would be nice if the Telerik Controls would render correctly in DPI aware applications.

Controls that are direct replacements for WinForms Standard controls such as Textbox, Tree, Checkbox, Label etc. should in their default configuration render identically to the Microsoft .net standard controls in .Net 4.6.1.

Controls that draw content such as ReportViewer, ChartView, Print Preview etc. should behave as expected. That is, by default, their content should render consistently relative to the size of the control in the same way regardless of the DPI settings.

Graphical elements in the controls should scale according to the control and provide different resolution graphics to support at least the standard settings of Windows 10 (125,150,175,200%).

Regards

Erwin

Dimitar
Telerik team
 answered on 11 Jan 2017
4 answers
356 views
I am trying to use the scheduler examples using Telerik UI for Winforms Q1 2014 but getting errors.   Where do I get the ExamplesForm and Telerik.Example .dlls?

​Imports Telerik.QuickStart.WinControls
Imports Telerik.WinControls.UI
Imports Telerik.Examples.WinControls.DataSources
Imports Telerik.Examples.WinControls.DataSources.SchedulerDataSetTableAdapters
Imports Telerik.WinControls.Enumerations
Imports Telerik.WinControls.UI.Scheduler.Dialogs
Imports System.Data.OleDb

Namespace Telerik.Examples.WinControls.Scheduler.DataBinding
Partial Public Class Form1
Inherits ExamplesForm
Private appointments As List(Of MyAppointment) = Nothing
Private resources As List(Of MyResource) = Nothing
Private schedulerDataSet As SchedulerDataSet = Nothing
Ernesto
Top achievements
Rank 1
 answered on 10 Jan 2017
1 answer
467 views

In the "Demo Application - UI for WinForms Q1 2016 SP1" there is an example of the RadGridView with Row Details.
I'm trying to reproduce this in the OpenEdge programming platform (so need to to make some minor changes) but I don't get it to work!
The latest problem is that it looks like 'DetailsColumn' is not a valid property of the RadGridView (or there is an error in the docs).

The adjusted code is:
method private void RadGridViewDetails_Load( input sender as System.Object, input e as System.EventArgs ):
            // TODO: This line of code loads data into the 'nwindDataSet.Employees' table. You can move, or remove it, as needed.
/*            this.employeesTableAdapter.Fill(this.northwindDataSet.Employees); */

            this-object:radGridView1:ReadOnly = true.
            this-object:radGridView1:AllowColumnReorder = false.
            this-object:radGridView1:AllowColumnResize = false.
            this-object:radGridView1:AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode:Fill.
            this-object:radGridView1:AutoExpandGroups = true.
            this-object:radGridView1:TableElement:RowHeight = 40.

            this-object:radGridView1:GroupDescriptors:Add(new Telerik.WinControls.UI.GridGroupByExpression("City GroupBy City")).
            /* this-object:radGridView1:Groups[1][0]:IsCurrent = true. */
           
            this-object:radGridView1:Columns["Photo"]:VisibleInColumnChooser = false.
            this-object:radGridView1:Columns["Photo"]:IsVisible = false.
            this-object:radGridView1:Columns["Notes"]:WrapText = true.
            this-object:radGridView1:Columns["LastName"]:SortOrder = Telerik.WinControls.UI.RadSortOrder:Descending.

            this-object:radGridView1:DetailsColumn = this-object:radGridView1:Columns["Notes"].
        return.

    end method.

 

The error I get is: Could not locate element 'DetailsColumn' in class Telerik.WinControls.UI.RadGridView
I'm I doeing something wrong here??

Also you notice that I commented this-object:radGridView1:Groups[1][0]:IsCurrent = true.
That's because this is not allowed in OpenEdge? What does this statement mean? Maybe I can transform that so it is allowed in OpenEdge.

What is not clear to me in the example is what code is responsible for adding that DetailsRow?
So what property creates that (default hidden) row that is displayed when I click on a row in the RadGridView

Thanks
Didier

Hristo
Telerik team
 answered on 10 Jan 2017
1 answer
176 views

Just researching this component to see if it can do what I want.

I have slightly modified the 'First look' example to see if I can modify it to suit. 

From reading the documentation, I should be able to force the connector to attach to a shape on one side , but I cannot get it to work.

As a simple test I tried to add a connection between a member to a Node

    Private Sub PopulateWithData()
        Dim dataXml As XElement = XElement.Load("Organization.xml")
        For Each element As XElement In dataXml.Elements("Node")
            Dim node As OrgContainerShape = Me.CreateNode(element, Nothing)
            node.BaseColor = Me.groupColor(0)
            Me.RadDiagram1.AddShape(node)
            currentLayoutSettings.Roots.Add(node)
            Me.GetSubNodes(element, node, 2)
        Next
'------- Add a new connection as a test -------------------------------
        Dim connection As New RadDiagramConnection()
        connection.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline
        Dim parentNode = Me.RadDiagram1.Shapes(0)
        Dim destNode = Me.RadDiagram1.Shapes(7)
        connection.Source = parentNode
        connection.Target = destNode
        connection.SourceConnectorPosition = "Left"
        connection.TargetConnectorPosition = "Auto"
        Me.RadDiagram1.AddConnection(connection)
    End Sub

 

But it always connects to the bottom of the shape.

What am I doing wrong? ( I have checked and the shape does have a Left connector)

Many thanks

Rob

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jan 2017
2 answers
281 views

Hello everyone, 

I tried to use the RadDropdownlist in my our project based on Winform, but when i changed the SelectedIndex there is an issue happened, it changed the TextAlignment to center automatically?

Although i tried many solutions to fix it but i cannot, so please help me to solve this issue :(

Bellow are my code, it happened on two bold lines.

var ddl = control as RadDropDownList;
if (ddl != null)
{
    if (!string.IsNullOrWhiteSpace(value))
    {
        var selectedItem = ddl.Items.FirstOrDefault(x => x.Value != null && x.Value.ToString() == value);
        if (selectedItem != null)
        {
            ddl.SelectedItem = selectedItem;
        }
    }
    else
    {
        ddl.SelectedIndex = -1;
        ddl.Text = $"Select {childField.FieldName}";
    }
}
else
{
    var maskedBox = control as MarsMaskedEditBox;
    if (maskedBox != null)
    {
        maskedBox.Value = value;
    }
    else
    {
        control.Text = value;
    }
}
Phuong
Top achievements
Rank 1
 answered on 10 Jan 2017
11 answers
404 views

(Sorry, the title should read "Appointment Changed Event in VB.NET" but I don't seem to be able to change it.)

The RadScheduler has several events:

  • AppointmentAdded
  • AppointmentDeleted
  • AppointmentEditDialogShowing

However, I don't see an AppointmentChanged event or AppointmentEditDialogShown event (or something to let me know that the edit dialog has been closed and I can persist the changes to the database).

Is this by design?

I found in another thread a mention of the RadScheduler.Appoinments.CollectionChanged event but in order to use it I have to use an AddHandler statement, something I'm not accustomed to in VB.

It just seems that an AppointmentChanged event would be an obvious event to implement.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jan 2017
2 answers
107 views

Hello,

Is there a way to set the opacity of the ChartTrackballController?

Thank you.

Mad

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jan 2017
1 answer
169 views
Hi,

I trying some controls from Telerik.
When searching for some documentation I found a document: https://pt.scribd.com/doc/98627477/Telerik-RadControls-for-Winforms-Courseware. = 775 pages
In that document I can find some usage off the RadCommandBar.
The problem is that I can't freely download that document.
When I look to the same? document on the telerik website I found: http://www.telerik.com/docs/default-source/documents/ui-for-winforms/telerik_ui_for_winforms_courseware.pdf
I should think that these are the same documents but on this I can't find the RadCommanBar entries this domument is only 657 pages (so 118 pages smaller!)

Can someone point me to the latest document for the Winforms documentation (with RadCommandBar entry in it)

regards
Didier
Hristo
Telerik team
 answered on 09 Jan 2017
6 answers
149 views

Hi,

 

I'm using Scheduler(RadWinForms Ver 2011.3.11.1219) for my project. Now, i want to insert/update back the "Appointment" information to my database after user click "Ok" or Cancel from "Edit Appointment Dialog form". I do not see any event for after added/updated the schedule control. I saw below event on RadSchedule

- AppointmentDeleted

- AppointmentDeleting

- AppointmentSelected

- AppointmentSelecting

 

How can i know the changes or newly add of appointment after user close or click ok/cancel from "Edit Appointment" form.

 

Regards,

 

Hristo
Telerik team
 answered on 09 Jan 2017
3 answers
443 views
Greetings. I've created Telerik VB Windows Forms Application and have checked the "Make single instance application" check box in the Visual Studio Project Designer. But it doesn't have any effect. When called with command line arguments, application always starts new instance, despite that there is another instance, already running. And the event My.Application.StartupNextInstance is never fired. Is it possible to fix it?
Dimitar
Telerik team
 answered on 09 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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?