Telerik Forums
UI for WinForms Forum
1 answer
213 views

WinForms v 2020.1.218.40

 

Editing an decimal element in a RadPropertyGrid causes the data to be rounded to 2 decimal places.

pre-edit:

editing:

post edit (no user made changes):

 

The desired behavior is to preserve at least original precision.

Setting the DecimalPlaces property on the BaseSpinEditorElement in the EditorInitialized event handler to 12 as suggested here: https://www.telerik.com/forums/propertygrid-rounding

caused this behavior when editing:

and post-edit (no user input):

Suggestions?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Mar 2022
1 answer
107 views

Hello,

I am developing a hierarchical radgridview using winform. I am able to retrieve data from the database (bound data). I would like to enable users to add multiple rows in the same radgridview and then save everything to the database. I have developed another radgridview that allows users to enter data. but I want to perform these functionalities into one radgridview.

When I am trying to do that, the system says: " Rows cannot be programmatically added to the datagridview's row collection when the control is data-bound".

Can you help me with this please?

 

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2022
1 answer
155 views

I have a RadTextBox data bound to an Decimal field (12,9).   When the user hits the "DELETE" button on their keyboard to blank out that field's value, the value is cleared out, but the user cannot exit the control until the user enters a value of some kind (Alpha or Numeric). This is not the desired outcome that we would like.  What I would like to happen is for the bound field's value to be set to null.  Can anyone help me with code sample please.  I have tried also using a MaskedEditBox with a MaskType of  Numeric and Mask of F9, but this also gives us undesired results (0.0000000) when user clicks the DELETE button on their keyboard.

Thank you.Text

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Mar 2022
1 answer
116 views
radRibbonbar shortcut keytips in telerik c#, firsttime after open application key tips showing , second time not showing keytips in Radribbonbar
Dinko | Tech Support Engineer
Telerik team
 answered on 30 Mar 2022
1 answer
800 views

Is there a way to capture when the "Clear Button" in the RadTextBox/RadTextBoxControl is clicked?

 


Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2022
1 answer
103 views

This happens on both a RadMenu and a RadContextMenu.

I have a contextmenu tied to a text box. THere are 2 items on the context menu. One is defined as RadMenuItem, one is defined as cMyMenuItem.

My Code:

Public Class cMyMenuItem
    Inherits Telerik.WinControls.UI.RadMenuItem

    Sub New()

    End Sub
End Class

 

Now, when the program is run, the menu item defined as RadMenuItem is fine, but the one defined as cMyMenuItem has a heavy border around it.

What do i need to setup in my class so the border isn't there.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Mar 2022
0 answers
282 views
When no data is entered into combobox, Width of the combobox is covering all the remaining Options (overlapping)
Naresh
Top achievements
Rank 1
Iron
 asked on 29 Mar 2022
1 answer
371 views

I read in a previous forum post about changing the column display order by using the MOVE argument.

My question is does that really move the COLUMN or just where it is displayed?

With the standard windows listview, you can change the DisplayIndex, which only displays where that column is displayed, but the index of the column doesn't change, only the display index.

When you do a move, is it really moving the INDEX of the column

For example

Vendor #           Name               Contact Name

Move

Vendor #           Contact Name               Name

These are my columns in a DetailsView RadListView. If i move name from column 2 to 3 (or 1 to 2 is zero-based), is the DISPLAY only changing, or the actual index of the column. After the MOVE, to get the contact name of the selected column, is that index 2 or is it still the original index 3?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2022
1 answer
135 views

I have a radlistview setup for viewtype=DetailsView. The HOME/END keys work, but the Page up/down only move the scroll area, not the selected item.

You will notice when running the below code, page up/down will always keep the selected item as FIELD 0 (the top one), but END moves the select to the last entry, and HOME moves the select to the first entry.

How can i get the page up/down to move the selected item. I am probably just missing something really simple that i can't seem to find.

        ListViewDetailColumn1.HeaderText = "Column 0"
        ListViewDetailColumn1.Width = 100.0!
        ListViewDetailColumn2.HeaderText = "Column 1"
        ListViewDetailColumn2.Width = 100.0!
        Me.RadListView1.Columns.AddRange(New Telerik.WinControls.UI.ListViewDetailColumn() {ListViewDetailColumn1, ListViewDetailColumn2})
        Me.RadListView1.ItemSpacing = -1
        Me.RadListView1.KeyboardSearchEnabled = True
        Me.RadListView1.Location = New System.Drawing.Point(200, 72)
        Me.RadListView1.Name = "RadListView1"
        Me.RadListView1.Size = New System.Drawing.Size(296, 208)
        Me.RadListView1.TabIndex = 2
        Me.RadListView1.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView

 Private Sub RadListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadListView1.DoubleClick
        MsgBox("DoubleClick" & vbCrLf & RadListView1.SelectedItem(0).ToString)
    End Sub

    Private Sub RadListView1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RadListView1.KeyPress
        If e.KeyChar = ChrW(13) Then
            MsgBox("KeyPress" & vbCrLf & RadListView1.SelectedItem(0).ToString)
        End If
    End Sub

    Private Sub LoadList()
        Dim lItem As Telerik.WinControls.UI.ListViewDataItem
        Dim cnt As Integer
        Dim selected As Boolean = False
        For cnt = 0 To 100 Step 1
            lItem = New Telerik.WinControls.UI.ListViewDataItem
            lItem.SubItems.Add(CStr(cnt))
            lItem.SubItems.Add("FIELD " & CStr(cnt))
            RadListView1.Items.Add(lItem)
            If Not selected Then
                RadListView1.SelectLastAddedItem = False
                selected = True
            End If
        Next
    End Sub

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2022
1 answer
234 views

We use the standard windows UI LinkLabel to display a hyperlink  in our software. I found 

https://docs.telerik.com/devtools/winforms/knowledge-base/link-label

 

but, the issue with this is it is forcing color/font to the label - which i know a linklabel does. But, doesn't the theme have a linklabel "standard"?

Also, I don't understand the radlabel.linkarea value, and i can't seem to find that explained anywhere.

 

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Mar 2022
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?