Telerik Forums
UI for WinForms Forum
2 answers
885 views

Hi.

One of nice type of progress bar is "step progress bar" as like attached picture . How can make it in winform. 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 May 2021
1 answer
135 views
Is it possible to setup a chart with multiple y axis aligned as shown in the attached picture?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 May 2021
1 answer
182 views
I've looked but I can't find any way to select a sort on the object?  On a radDropDownList there is a "SortStyle" property.  This is what I am looking for, but on a CommandBarDropdownList.  I can of course sort the data beforehand, but I assumed there would be a SortStyle on it and if so, would rather use the existing functionality if it exists.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
18 answers
1.6K+ views
Me.RadGridView1.Rows.Clear()
Me.RadGridView1.ColumnCount = 5
 
RadGridView1.Columns(0).HeaderText = "Id."
RadGridView1.Columns(1).HeaderText = "Name"
RadGridView1.Columns(2).HeaderText = "Under Appeal"
RadGridView1.Columns(3).HeaderText = "Terminated"
RadGridView1.Columns(4).HeaderText = "#"
 
RadGridView1.Columns(1).Width = 100
 
 
RadGridView1.Rows.Add ( 1, "John", True, True )
RadGridView1.Rows.Add ( 2, "Mary", True, False )
RadGridView1.Rows.Add ( 3, "Peter", False, True )


How do I get the radgridview to display checkboxes for boolean values for the last two columns? The columns get manually loaded.

Best regards
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
2 answers
560 views

Hello,

we are creating a barcode programmatically like it is described here: https://www.telerik.com/forums/generate-barcode-image-programmatically

The problem is, that the barcode itself is a bit small (width) for our purpose.

Our code looks like this:

var barcode = new RadBarcode();
barcode.Width = 900;
barcode.Height = 150;
barcode.Symbology = new Code39();
barcode.Value = "1890";
barcode.LoadElementTree();
var barcodeImage = barcode.ExportToImage(900, 150);
barcodeImage.Save(@"C:\test.png");

But if you look at the attached image (test.png), it has the correct size alright, but not the barcode itself. 

Is there away to give the barcode itself more width?

 

Kind regards.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
1 answer
197 views
Hello
When I set
Me.IsMdiContainer = true
the background color of the form automatically changes to DarkGray while I need to keep the original color(when: Me.IsMdiContainer = false).

guid me

thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2021
4 answers
1.2K+ views

I want to generate the image of BarCode without showing on the WinForm.  How to assign "Code39Extended" to Symbology?

 RadBarcode rBL = new RadBarcode();
 rBL.Symbology = "Code39Extended";

Thanks.

 

Dess | Tech Support Engineer, Principal
Telerik team
 updated answer on 30 Apr 2021
1 answer
141 views

 

Hello,

I'm struggling to get some events to work on a RadListViewElement, which is a child of a custom RadElement, which in turn is inside another custom RadControl. I guess a few lines of code will help to describe this:

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

Public Class xElement
    Inherits RadElement

    Private listElement As RadListViewElement

    Public Sub New()
        'Me.NotifyParentOnMouseInput = True
        'Me.ShouldHandleMouseInput = True
        'Me.Capture = True
        'Me.CaptureOnMouseDown = True
    End Sub

    Protected Overrides Sub OnLoaded()
        MyBase.OnLoaded()

        AddHandler listElement.ItemMouseUp, Sub(s, e)
                                                If e.OriginalEventArgs.Button = MouseButtons.Left Then
                                                    listElement.SelectedItem = e.Item
                                                End If
                                            End Sub
    End Sub

    Protected Overrides Sub CreateChildElements()
        MyBase.CreateChildElements()

        listElement = New RadListViewElement
        With listElement
            '.ShouldHandleMouseInput = True
            '.NotifyParentOnMouseInput = True
            '.Capture = True
            '.CaptureOnMouseDown = True
            .ViewType = ListViewType.ListView 
            .DataSource = New List(Of String)(New String() {"a", "b", "c"})
        End With
        Me.Children.Add(listElement)
    End Sub

End Class
Imports Telerik.WinControls

<ToolboxItem(True)>
Public Class xControl
    Inherits RadControl

    Private element As xElement

    Public Sub New()
        element = New xElement()
        RootElement.Children.Add(element)
    End Sub

End Class

Some remarks on this piece of code:
- The items in listview react to events like mouseEnter/Leave.
- These items can't be selected by using the mouse, the click event does nothing on them, the action needs to be managed manually, which here is done in the OnLoaded() sub.
- The click event works on other elements inside listView, so, for instance, the scrollbar of the item container can be clicked, the list of items can be scrolled.

So, some events work out-of-the-box and some do not, and a certain event works here but not there, so I'm somewhat confused on what's going on. Anyway, it doesn't seem like the way it's supposed to be, and I'm sure the proper solution is a lot less cumbersome than manually capturing each event and then replicating the original behavior.

I guess I'm just missing something about how TPF works, maybe there's some element not initialized correctly, perhaps I need to enable some property. Any suggestions on this?

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Apr 2021
1 answer
144 views

How can I find out the selected layout  (list, small icon, etc.) chosen by the user at the point the dialog is closed?

Thanks

Steve

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2021
7 answers
697 views

Hello

I would need to calculate the height of a grid as it would be if all the rows were visible.

I need this value to change the location of another element just below the grid.
More precisely, the grid and the other component are located within a tablelayoutpanel that has two rows, the top one is of variable height and the second of fixed height.

When the form is resized (or the grid re-loaded), I can have two situations:

1. the grid does not fit in the available space of the first row, in this case I do not need to adjust the position of the second row of the table layoutpanel

2, the grid does not fill the available space of the first row. In this case I need to change the height of the second row in order to have the second element "just" below the grid without having a large white space between the grid and the second element.

I have tried to calculate the grid height as the sum of individual gridrow height but since the gridheight of a non visible row = -1 this does not work.

Therefore I would like to have the height of the grid as if all the rows were visible and the I can proceed with my redimensionning of the layoutpanel.

I am not sure my explanations are clear ..

 

Thanks in advance for any suggestion

Best regards

Pierre-Jean

 

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Apr 2021
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?