Telerik Forums
UI for WinForms Forum
1 answer
93 views

Hello

I have a hierarchical RadGridview with a GridViewCheckBoxColumn in the secondary template.

The column has EnableHeaderCheckBox = true so that it shows if all rows are checked and can be used to check them all.

If there are exactly two rows and I manually check the first of them the 'all checked' header checkbox gets checked - although the second row is not checked.

As soon as the second row is checked the error doesnt occur anymore

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Sep 2024
1 answer
79 views

Hi,

i have a problem concerning (Telerik.wincontrol.dll 2012.3.1017.20)
Sometimes, but not everytime, when i start entering a value into one of my radtextboxes the following error will be thrown.

Please help me find the result of error ,  When will this issue be triggeredUrgently hoping for a reply。


在 Telerik.WinControls.Keyboard.ChordMessageFilter.FindChordPattern(IList`1 list)
   ĺś¨ Telerik.WinControls.Keyboard.ChordMessageFilter.FindChordPattern()
   ĺś¨ Telerik.WinControls.Keyboard.ChordMessageFilter.ProccessChord()
   ĺś¨ Telerik.WinControls.Keyboard.ChordMessageFilter.System.Windows.Forms.IMessageFilter.PreFilterMessage(Message& msg)
   ĺś¨ System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
   ĺś¨ System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   ĺś¨ System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
   ĺś¨ System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   ĺś¨ System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   ĺś¨ System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   ĺś¨ System.Windows.Forms.Application.RunDialog(Form form)
   ĺś¨ System.Windows.Forms.Form.ShowDialog(IWin32Window owner)


Nadya | Tech Support Engineer
Telerik team
 answered on 30 Sep 2024
4 answers
161 views

Hello, 

I'm using the RadGanttView component and I'm trying to manage multiple coloring on some tasks. 

I've followed the example given in your documentation: 

https://docs.telerik.com/devtools/winforms/controls/ganttview/custom-items/task-elements

I need to be able to condition the coloring of tasks and ensure that vertical scrolling does not affect rendering. 

Do you have any ideas on how to do this?

You'll find a sample project with the case described.

All you have to do is scroll vertically through the tasks, the task coloring will follow the scroll.

Thanks,

Rémi

Fabrice
Top achievements
Rank 2
Iron
Iron
 answered on 26 Sep 2024
1 answer
131 views

Good morning
in a RadGridView in the event of a button I delete a row from the database and I would like to reposition and select the row after the deleted one. The problem is that I can't figure out how to get the id of the row after the deleted one. To complicate things I add that the rows are filtered by the filtering row of the RadGridView. I attach code to make it clearer.

I think the problem is that to delete the row I take the index from the first cell of the row. But I don't understand how to take the index of the row of the radgridview

Fabrizio


    Private Sub btnEliminaLotto_Click(sender As Object, e As EventArgs) Handles btnEliminaLotto.Click

        'Trova id selezionato con ChildRows
        propIdLottoMateriale = gridLottoMateriale.ChildRows(gridLottoMateriale.CurrentRow.Index).Cells(0).Value

        Dim result As DialogResult

        If Not (propIdLottoMateriale = Nothing) Then
            If gridLottoMateriale.SelectedRows.Count > 0 Then
                result = MessageBox.Show(" Sei sicuro di voler eliminare il Test Report N° : " & propIdLottoMateriale & " ? ", "Elimina test Report in Database", MessageBoxButtons.OKCancel)
                If result = DialogResult.Cancel Then
                    Exit Sub
                End If

                If result = Windows.Forms.DialogResult.OK Then
                    EliminaLottoMateriale(propIdLottoMateriale)

                    'Controllo se il filtro esiste ancora
                    If (gridLottoMateriale.IsInEditMode) Then
                        gridLottoMateriale.EndEdit()
                    End If

                    'Toglie il filtro
                    gridLottoMateriale.FilterDescriptors.Clear()

                    'PopolaGridLotto()
                    'Aggiorna il dataset binding con la grid
                    TblNumeroLottoMaterialeTableAdapter.Fill(DsNumeroLottoMateriale1.tblNumeroLottoMateriale)

                    'Riposiziona la griglia sulla riga dopo quella eliminata
                    gridLottoMateriale.CurrentRow = gridLottoMateriale.ChildRows(indexRigaPerAggiorna + 1)
                    gridLottoMateriale.CurrentRow.IsSelected = True

                Else
                        Exit Sub
                End If
            Else
                MessageBox.Show("Seleziona una riga !!")
            End If

        Else

        End If

    End Sub



    Public Function EliminaLottoMateriale(ByVal id As Integer)
        Dim deleteCommand As DbCommand = Nothing
        Dim rowsAffected As Integer
        Try
            deleteCommand = _db.GetStoredProcCommand("spDeleteQueryLotto")
            _db.AddInParameter(deleteCommand, "id", DbType.Int32, id)
            rowsAffected = _db.ExecuteNonQuery(deleteCommand)
        Catch ex As Exception
            MessageBox.Show("Errore EliminaLottoMateriale : " & ex.Message)
        End Try
        Return rowsAffected
    End Function

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Sep 2024
1 answer
161 views

Hi,

I have just updated to the latest version of UI WinForms, and can no longer compiler. RbgColor and RbgColors can no longer be used and ZipArchive.Read no longer exists.

No issues were reported when upgrading my application.

Have I done something wrong?

Kind regards

Toby

Toby
Top achievements
Rank 3
Iron
Iron
Iron
 updated answer on 26 Sep 2024
1 answer
113 views

I'd like to do something when the user double-clicks on a gridview column header without running the click handler and without setting the sort to that column.

Can I?  How?

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Sep 2024
1 answer
132 views
I am trying to invoke a radfloyout manager from a form which is a child of the main application form. When i close the radflyoutmanager from the flyout usercontrol, i am getting the error "System.InvalidOperationException: 'Cross-thread operation not valid: Control 'FrmOrgs' accessed from a thread other than the thread it was created on.'" I am unable to figure out why this is happening.
i have tried setting the associated form as both the main screen form as well as the child form but i keep getting the same error.
Dinko | Tech Support Engineer
Telerik team
 answered on 25 Sep 2024
1 answer
131 views

I am using the VisualStudio2022Light theme. I am not able to change the SignStyle of the Expander in a RadGridView.

Here it is the code.

This is the result. Both signs are there.
  

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Sep 2024
1 answer
72 views

Hello 

I am trying to fix some text when it is being inserted in a richtexteditor but each time I move the caret position to document end the font changes back to default. This is my code:

 if (txtCorrections.Text[txtCorrections.Text.Length - 1] == ')' && txtCorrections.Text[txtCorrections.Text.Length - 2] == ' ')
                {

                    txtCorrections.Text = txtCorrections.Text.Remove(txtCorrections.Text.Length - 2, 1);
                    txtCorrections.Document.CaretPosition.MoveToDocumentEnd();


                }
                I use this code in a textChanged.

Thank you for help.

                         
Dinko | Tech Support Engineer
Telerik team
 answered on 19 Sep 2024
1 answer
115 views

Hello,

We are using radGridView in a winforms application. The last 4 columns visible in the screen shot have the property "IsVisible" set to false. When opening the window for the first time ,the list is empty and we are launching some synchronisation processes in the background to charge the information to display. However, the 4 last columns show up in the list and are filled with information as soon as the synchronization has finished. When closing and reopening the window, the columns disappear and everything is correct. What could be the reason for them to show up even though their visibility is set to false?

.NET version: 6
Telerik version: 2024.3.806

Thank you in advance!

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Sep 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
SplashScreen
Flyout
Separator
SparkLine
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?