Telerik Forums
UI for WinForms Forum
0 answers
95 views

As of 2024 Q4 (November), we will deprecate .NET 7 distribution. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.  

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post: Product Update for Enhanced Performance and Security (telerik.com)

For more information about how to upgrade your project when a new version of the Telerik UI for WinForms suite is released, you can check here: How to Upgrade a Telerik UI for WinForms Project - Telerik UI for WinForms 

Nadya
Top achievements
Rank 1
 asked on 16 May 2024
2 answers
2 views

Hi,

 

In my application I wantg to give the user the baility to select from multiple items using the checked drop down list box control, in adidtion I want to be able to do the following:

1. prevent the user from typing anything in to the RadCheckedDropDownListEditableAreaElement. i.e. the user can select items via the drop down check list.

2. override the text displayed in RadCheckedDropDownListEditableAreaElement, so that

  • if no items are displayed there is no text
  • if one item is displayed then monly that item is displayed - with no 'X' to remove it
  • if more than one item is selected, then display the single word "Multiple"

How do I go about achieveing this behaviour ?

many thanks

Toby

Toby
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 11 Oct 2024
1 answer
6 views

I have a grouped by resources scheduler in timeline view with the timescale set to days and I'd like to set the so called "slot-duration" to half-day for the day cell, which can already be done in the aspnet ajax version I link below. Is there a way to achieve this functionality in c# winforms?

Basically I'd like to divide the day slots into two parts to track absences, which can have a half day and full day duration.

https://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Oct 2024
0 answers
3 views

We had a project using two RadGridViews in Winforms, one of the features was dragging some info from one of the rows of one grid to other row of the grid.

With olders versions of Telerik controls, when dragging no insert lines appear, but we have updated to current version and now, when dragging one row from one grid to the other one inserting lines appear over or below the row

This is great for most cases but not for this one,

 

Is there any way to prevent this lines?

Vicent
Top achievements
Rank 1
 asked on 11 Oct 2024
0 answers
9 views

Hi, I'm using a RadPdfViewer to show a Pdf.

If the pdf is signed the signatures panel is showed, but the signature is always showed as not valid, even if it is valid.
The error is that the "The signer's identity isunknown".

I tried also to call the SignatureField.Signature.Validate() method and it throws an exception like this:

No signature validation handler was found for the subfilter: ETSI.CAdES.detached

 

Any suggestion?

Thanks.

Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 08 Oct 2024
1 answer
7 views

I have for with a radspreadsheet on. ( Telerik.WinControls.UI.RadSpreadsheet )

Which event do I need to use to capture a change in a cell?

For example, if I change cell A2 from value "ABC" to "EFG", how can I get the value "EFG" ?

If I check the documentation: then the CellPropertyChanged event exists, but I cannot find this in my IDE.

Why are the events that I have in my radSpreadSheet different then the documentation? 

Nadya | Tech Support Engineer
Telerik team
 answered on 08 Oct 2024
1 answer
10 views

Hi, anyone can help me with the issue below?

I have a customized theme applied in my application. However, a customized editor doesn't apply the theme. I am not able to override the theme here.

    Private Sub RadGridView3_EditorRequired(sender As Object, e As EditorRequiredEventArgs) Handles RadGridView3.EditorRequired
        If RadGridView3.CurrentColumn.HeaderText = "Section" Then
            e.Editor = New MyAutoCompleteEditor
        End If
    End Sub

 

Class MyAutoCompleteEditor
    Inherits RadTextBoxControlEditor

    Protected Overrides Function CreateEditorElement() As Telerik.WinControls.RadElement
        Dim element As New RadAutoCompleteBoxElement With {
            .AutoCompleteMode = AutoCompleteMode.Suggest
        }

        Return element
    End Function

    Public Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs)
        Dim element As RadAutoCompleteBoxElement = TryCast(Me.EditorElement, RadAutoCompleteBoxElement)

        If element.TextLength >= 40 Then
            e.SuppressKeyPress = True
        End If

        RemoveHandler element.KeyPress, AddressOf RadAutoCompleteBox_KeyPress
        AddHandler element.KeyPress, AddressOf RadAutoCompleteBox_KeyPress
        RemoveHandler element.TextChanging, AddressOf RadAutoCompleteBox_TextChanging
        AddHandler element.TextChanging, AddressOf RadAutoCompleteBox_TextChanging

        If element.IsAutoCompleteDropDownOpen Then
            Return
        End If

        MyBase.OnKeyDown(e)
    End Sub

    Private Sub RadAutoCompleteBox_KeyPress(ByVal sender As Object, ByVal e As KeyPressEventArgs)
        Dim element As RadAutoCompleteBoxElement = TryCast(sender, RadAutoCompleteBoxElement)

        If element.Items.Count > 0 Then
            e.Handled = True
        End If

    End Sub

    Private Sub RadAutoCompleteBox_TextChanging(ByVal sender As Object, ByVal e As Telerik.WinControls.TextChangingEventArgs)
        If e.NewValue = "" Then
            Return
        End If

        Dim el As RadAutoCompleteBoxElement = TryCast(sender, RadAutoCompleteBoxElement)

        If el.Items.Count > 0 Then
            e.Cancel = True
        End If
    End Sub

End Class

Text column


In the custom column, control is running on the Visual Studio 2022 theme.
Nadya | Tech Support Engineer
Telerik team
 answered on 08 Oct 2024
1 answer
11 views

I have a RadGridView that has its first column(named "Visible") as a CheckBox cell in every row.

I have another CheckBox that toggles all the CheckBoxes in the GridView. In this CheckBox's ToggleStateChanged handler, I am trying to get the checkbox element in the GridView row and toggle its state.

This is what I am trying at the moment:

foreach(var myGridRow in curveGridView.Rows)
{
    ((GridViewCheckBoxColumn)myGridRow.Cells["Visible"].ColumnInfo).Checked = Telerik.WinControls.Enumerations.ToggleState.On;
}

However, I am unable to get the RadCheckBox element in the GridView Row and I cannot toggle the checkbox in the row.

Any help would be greatly appreciated.

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Oct 2024
1 answer
12 views

Hello,

i am trying to show content of excel file in RadSpreadSheet. For first attempt its working fine, but if i decide to change something in excel file i can't do it, because RadSpreadSheet keep the excel file open. How can I lost connection to my excel, edit it, and reopen edited file again? I have tried everytime when i need to open excel create new instance OF RadSpreadSheet, but it doesn't work. Please look at the code below.


The code is basicly managed as: When i show UserControl  (Visible = true), i want to create new instance of RadSpreadSheet for losing existing connection and have option load the file what i edited. Please understand as cycle:  Open excel file in RadSpreadSheet, than i need to have options: edit / delete or recreate excel file and open the edited excel file again in RadSpreadSheet. But it doesn't work because new intance of RadSpreadSheet is empty and there is not loaded file or it throw exception: "The process cannot access the file "xxxx" because it is being used by another process".  Via code is it: User create excel file than this file is loaded to RadSpreadSheet (everything okay) and than has option to print this excel or go back and edit excel file again (when it eddited, the program drop with exception thats this file is used in another process) Personally i think when i load file and it is showing in RadSpreadSheet, and after that i want to edit file, the RadSpreadSheet has still connection to this file. The new instances of RadSpreadSheet is not solution of losing connection.

Last and not least i am sorry for my mistakes in English
Thank you for any response and your time. 


Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2024
2 answers
15 views

Hi,

I am trying to show data in a postgres DB in a RadVirtualGrid.  Data is big and continuously flows and changes, so I decided to use RadVirtualGrid, first I started witf RadGridView with VirtualMode on but decided to use RadVirtualGrid, hope thats the correct decision?

I can show the data correctly and get updates via LISTEN/NOTIFY mechanism of Postgres.(sometimes it stops updating but I think it is a postgres side problem) . I couldnt make the filtering work.

With regards to code I attached, Is it really possible to use the FilteringColumn which is shown when RadVirtualGrid.AllowFiltering==true.

When I enter a value to filter it doesnt work and filter textbox dissapears:

Here I hit 'APPLY FILTERS' button or pres enter key it show like below:

My reqs are:

* Display data with minimum delay

* Filter with column values. Some columns are decimal but some are enums so instead of writing the enum value in the filter having a dropbox (excel style) would be good.

* Filtering will work on all data not just on the visible rows in the grid. Also filtered grid should be updated when new data arrives.

*  Sorting (optional)

* Export data to XML (all data not only the visible rows)

 

Thanks in advance !

 

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