Telerik Forums
UI for WinForms Forum
2 answers
71 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
64 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
99 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
70 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
1 answer
82 views

Hi Telerik support team,

I’ve a question about the GridView for Winforms. In my grid I’ve a combobox column which is based on a enum. Before, in net framework 4.7.2 I had a nice wrapper around it in order to translate the values. Works like a charm.

Now we’ve updated our application to net8 and that part does not work anymore. I’ve isolated the code in a simple example program. The attached solution contains 2 projects, one is net framework and the other is net8. Code is the same. In the net8 I get an exception when I try to set a filter on the column.

Are you aware of this? Did I miss something? How can I get this working in net8?

Any help is welcome.

Regards,

Daniel Kaya

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Sep 2024
1 answer
56 views
as per the title I group records by groupID, but the records also contain dates, I in turn would like to order the groups by "creation date" without creating other subgroups, leaving the grouping by groupID unchanged.

Currently I use this code for grouping:

GroupDescriptor descriptor = new();
descriptor.GroupNames.Add("GroupID", ListSortDirection.Descending);
this.DGNotes.GroupDescriptors.Add(descriptor);
I tried using examples in the documentation but to no avail. Thanks for your help.
Dinko | Tech Support Engineer
Telerik team
 answered on 11 Sep 2024
1 answer
56 views

Bonjour,

je cherche la commande pour changer dynamiquement le thème des écrans. 
J'ai une combo-box avec differents thèmes: Fluent, Telerik metro blue,....
Des que l'on sélectionne un thème, je veux que tous les écrans changent de thème.
Ex: Fluent par defaut. L'utilisateur choisit 'telerik metro blue' alors les écrans utilisents ce thème.
Merci de vos retours.

Nadya | Tech Support Engineer
Telerik team
 answered on 05 Sep 2024
1 answer
58 views

Below is the code i am using for visualitemcreating, however the layout is not coming out proper, can anyone please help me with this.

When i run the code, i am getting the listview as  which does not include the role and email details that should com in the second row.

Please help, i am unable to find what i am missing here.

Public Class CustomUserVisualItem
    Inherits SimpleListViewVisualItem
    Private Row1Element As LightVisualElement
    Private Row2RoleElement As LightVisualElement
    Private Row2EMailElement As LightVisualElement
    Private stackLayoutMain As StackLayoutPanel
    Private stackLayoutRow2 As StackLayoutPanel
    Protected Overrides Sub CreateChildElements()
        MyBase.CreateChildElements()
        Me.stackLayoutMain = New StackLayoutPanel()
        Me.stackLayoutMain.Orientation = Orientation.Vertical
        Me.stackLayoutMain.EqualChildrenWidth = True
        Me.stackLayoutMain.ShouldHandleMouseInput = False
        Me.stackLayoutMain.NotifyParentOnMouseInput = True
        Me.Children.Add(Me.stackLayoutMain)

        Me.Row1Element = New LightVisualElement()
        Me.Row1Element.StretchHorizontally = True
        Me.Row1Element.MinSize = New Size(120, 0)
        Me.Row1Element.ShouldHandleMouseInput = False
        Me.Row1Element.NotifyParentOnMouseInput = True
        Me.stackLayoutMain.Children.Add(Me.Row1Element)


        Me.stackLayoutRow2 = New StackLayoutPanel()
        Me.stackLayoutRow2.Orientation = Orientation.Horizontal
        Me.stackLayoutRow2.EqualChildrenWidth = True
        Me.stackLayoutRow2.ShouldHandleMouseInput = False
        Me.stackLayoutRow2.NotifyParentOnMouseInput = True
        Me.stackLayoutMain.Children.Add(Me.stackLayoutRow2)

        Me.Row2EMailElement = New LightVisualElement()
        Me.Row2EMailElement.Text = "Email"
        Me.Row2EMailElement.MinSize = New Size(60, 0)
        Me.Row2EMailElement.TextAlignment = ContentAlignment.MiddleLeft
        Me.Row2EMailElement.NotifyParentOnMouseInput = True
        Me.Row2EMailElement.ShouldHandleMouseInput = False
        Me.stackLayoutRow2.Children.Add(Me.Row2EMailElement)

        Me.Row2RoleElement = New LightVisualElement()
        Me.Row2RoleElement.Text = "Role"
        Me.Row2RoleElement.MinSize = New Size(60, 0)
        Me.Row2RoleElement.TextAlignment = ContentAlignment.MiddleRight
        Me.Row2RoleElement.NotifyParentOnMouseInput = True
        Me.Row2RoleElement.ShouldHandleMouseInput = False
        Me.stackLayoutRow2.Children.Add(Me.Row2RoleElement)


    End Sub
    Protected Overrides Sub SynchronizeProperties()
        MyBase.SynchronizeProperties()

        Dim product As UsersList = TryCast(Me.Data.Tag, UsersList)
        Dim color As String = ""

        If product.userstatus = "Active" Then
            color = "Green"
        Else
            color = "Red"
        End If

        Me.Text = ""
        Me.Row1Element.Text = "<html><span style=""color: " & color & "; font-size: 12pt;"">• </span> <span style=""font-size:12pt;"">" & product.firstName & " " & product.lastName & "</span>"
        Me.Row2RoleElement.Text = "<html><span style=""font-size:9pt;"">" & product.role & "</span>"
        Me.Row2EMailElement.Text = "<html><span style=""font-size:9pt;"">" & product.email & "</span>"
    End Sub
    Protected Overrides ReadOnly Property ThemeEffectiveType() As Type
        Get
            Return GetType(SimpleListViewVisualItem)
        End Get
    End Property
End Class

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Sep 2024
1 answer
105 views

We have incomming PDF documents that have been annotated/marked up/stamped (we beleive using Adobe). When you view or print from Telerik the "annotations" are missing or wrongly formated. 

Chrome and Edge both display the PDF correctly.

Are there any properties or techniques I can use to get Telerik PDF to include the annotations ?

Attached are the original PDF "PDFMarkUp.pdf" and the PDF as printed by Telerik "PDFMarkUpOUT.pdf" (Replicates the Telerik View )

Nadya | Tech Support Engineer
Telerik team
 answered on 03 Sep 2024
1 answer
73 views

I have a situation where I would like to customize the list of items provided by the auto-completion suggestion list in a RadCheckedDropDownList.  i.e. Even though radCheckedDropDownList1.DataSource is set to one list of values, I need to set radCheckedDropDownList1.AutoCompleteDataSource to a different list of values.  Whenever I attempt to do this, the auto-complete drop-down list still shows suggestions from the DataSource collection rather than the AutoCompleteDataSource collection.

If I attempt the same thing with a normal RadDropDownList, it works fine.  Is this functionality not supported with a RadCheckedDropDownList?  If not, why have an AutoCompleteDataSource property?  If it is supported, what is the proper usage to get it work?

Thanks!

--Darren

Nadya | Tech Support Engineer
Telerik team
 answered on 02 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)
Chart (obsolete as of Q1 2013)
Form
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?