Telerik Forums
UI for WinForms Forum
1 answer
66 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
100 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
97 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
52 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
75 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
1 answer
106 views

Hello,

I am new to WinForms.

Is there a possibility to disable the Arrow for the RadDropDownList ?

When I set the component to readonly, I can still choose a new value via the arrow.

But then the value is never saved because it is read-only.

And wich property do I have to set for this?

 

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Sep 2024
2 answers
82 views

I have a question about the RadGridView

I want to retrieve the new value of a cell that I have changed.

When I change a cell from value "AB" to "CD", how can I then get "CD" ?

Should I use the RowsChanged or CellValueChanged event?

In the RowsChanged, you have a property e:NewItems, but I don't know how you then can get value "CD" from e:NewItems.

Jarne
Top achievements
Rank 2
Iron
 answered on 16 Sep 2024
1 answer
71 views

Hi!

I have MdiParent Form which hosts multiple MdiChids. I would like to determine why the MidParent is being closed withing the MdiChild-ClosingEvent. The CloseReason in the MdiChild-ClosingEvent only says "MdiFormClosing". But I dont know if the MdiParent is closed due to user operation (eg. pressing X in upper right corner) or Windows is being shutdown.

How can I solve that?


background:

The MdiChild_FormClosing-Event either asks if this or all childs shall be closed. If all are confirmed, the static variable of "bool _ForceClosing" prevents the next child from asking again. So good so far. I would like to skip this confirmation stuff in case, windows is being shutdown. But this CloseReason in MdiChild only has UserClosing or MdiFormClosing.

System::Void 
Form_Client::Form_Client_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e)
  {
    //-----------------------------------------------------------------------------------------------------------------------------
    try
    {
      //-- mdi closing already confirmed --------------------------------------------------------------------
      if (this->_ForceClosing == true)
      {
        e->Cancel = false;
        return;
      }
      //-- windows shutdown ---------------------------------------------------------------------------------
      else if (e->CloseReason == System::Windows::Forms::CloseReason::WindowsShutDown)  // not working
      {
        this->_ForceClosing = true;
      }
      //-- user single closing (ask if connected) -----------------------------------------------------------
      else if (e->CloseReason == System::Windows::Forms::CloseReason::UserClosing)
      {
        // ask if this child shall be closed
        if (Result != System::Windows::Forms::DialogResult::OK)
        {
          e->Cancel = true;
          return;
        }
      }
      //-- mdi parent closing initiated ---------------------------------------------------------------------
      else if (e->CloseReason == System::Windows::Forms::CloseReason::MdiFormClosing)
      {
        // ask if all childs shall be closed
        if (Result != System::Windows::Forms::DialogResult::Yes)
        {
          e->Cancel = true;
          return;
        }
        //-------------------------------------------------------------------------------
        this->_ForceClosing = true;
      }
      //-- unknown reason -> just close all -----------------------------------------------------------------
      else
      {
        this->_ForceClosing = true;
      }
    }
    //----------------------------------------------------------------------------------------------------------------------------
    catch (System::Exception^ ex)
    {
      System::Windows::Forms::MessageBox::Show( ex->ToString() ); 
    }
  }
Thanks in advance
Dinko | Tech Support Engineer
Telerik team
 answered on 16 Sep 2024
1 answer
103 views
Hello, can you please tell me how to properly localize radtreeview nodes text? The localization is working properly for other controls like rad menu items: In case of them, I only had to change the language property in parent RadForm, and set text property in particular language for that control and it worked fine. However, it cannot be done for tree nodes. For tree nodes I tried changing the language property in the parent form then opening the property builder where I set Text property. It turns out that the text set in this property is the text that is shown in all languages, not just in the one selected in the main form. So, how to do this?
Nadya | Tech Support Engineer
Telerik team
 answered on 16 Sep 2024
1 answer
74 views

How to fix the issue below where a cell is marked with modified just because the cell was clicked?

Before the datasource is set.

After the datasource is set.

The value was not changed, but it is firing he RowsChanged.

How can avoid it to happen?

Nadya | Tech Support Engineer
Telerik team
 answered on 16 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
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
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
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?