Telerik Forums
UI for WinForms Forum
1 answer
121 views

Hello, support team.

I have an application with a PropertyGrid in C# with WinForms. In this PropertyGrid I need to display a drop-down list with a predefined value list, but I need to allow also the user be able to edit a not listed value.

Thank you in advance

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Nov 2024
1 answer
94 views
I've tried to remove the black border around legenditems in RadMap to no avail. I've also tried to change the border colour to white and that has not worked.  I was able to change the element spacing using  .ElementSpacing = 0 but have not been able to remove the item borders. I've pasted the code below, how can I remove the black border around legend items? I'm using .Net Framework 4.8 Winforms.

 

Thanks

 

For Each dColor As Double In {0, 0.25, 0.5, 0.75, 1}.Reverse()
        Dim oLegendItem As New MapLegendItemElement("", Color.White)

        oLegendItem.EnableBorderHighlight = False
        oLegendItem.BorderWidth = 0 ' Remove black outline?
        oLegendItem.Margin = New Padding(0)
        oLegendItem.Padding = New Padding(0)
        oLegendItem.MinSize = New Size(20, 10)
        oLegendItem.HorizontalLineWidth = 0
        oLegendItem.BorderBottomColor = Color.White
        oLegendItem.BorderTopColor = Color.White
        oLegendItem.BorderTopWidth = 0
        oLegendItem.BorderBottomWidth = 0
        oLegendItem.DrawBorder = False

        oLegendItem.BackColor = Color.White
        oLegendItem.BackColor2 = Color.White
        oLegendItem.BackColor3 = Color.White
        oLegendItem.BackColor4 = Color.White
        oLegendItem.BorderBottomShadowColor = Color.White
        oLegendItem.BorderColor = Color.White
        oLegendItem.BorderColor2 = Color.White
        oLegendItem.BorderColor3 = Color.White
        oLegendItem.BorderColor4 = Color.White
        oLegendItem.BorderInnerColor = Color.White
        oLegendItem.BorderInnerColor2 = Color.White
        oLegendItem.BorderInnerColor3 = Color.White
        oLegendItem.BorderInnerColor4 = Color.White
        oLegendItem.ShadowColor = Color.White
        oLegendItem.BorderInnerColor4 = Color.White

        oLegendItem.BorderThickness = New Padding(10)
        oLegendItem.BorderHighlightThickness = 0
        oLegendItem.DrawFill = False

        .ItemStackElement.Children.Add(oLegendItem)
    Next


    With .ItemStackElement
        .BackColor = Color.White
        .BackColor2 = Color.White
        .BackColor3 = Color.White
        .BackColor4 = Color.White
        .BorderBottomShadowColor = Color.White
        .BorderColor = Color.White
        .BorderColor2 = Color.White
        .BorderColor3 = Color.White
        .BorderColor4 = Color.White
        .BorderInnerColor = Color.White
        .BorderInnerColor2 = Color.White
        .BorderInnerColor3 = Color.White
        .BorderInnerColor4 = Color.White
        .ShadowColor = Color.White
        .BorderInnerColor4 = Color.White


        .ElementSpacing = 0  ' Remove spacing
        .EnableElementShadow = False

        .DrawBorder = False
        .EnableFocusBorder = False
        .BorderColor = Color.White
        .BorderBottomColor = Color.White
        .BorderWidth = 0
        .EnableBorderHighlight = False
        .DrawBorder = False
        .BorderBottomWidth = 0
        .BorderBottomWidth = 0
        .BorderThickness = New Padding(0)
        .BorderHighlightThickness = 0
    End With
End With

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Nov 2024
1 answer
145 views

Hi,

in VirtualGrid, is there a way to set the default filter descriptor (different from "contains")?

Something like you suggest for the Grid control (https://www.telerik.com/forums/how-to-set-default-of-filterdescriptor-operator).

Thank you,

 

Emanuele

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Nov 2024
1 answer
127 views

Was this removed in the most recent Winforms update?

 

I can't find it in the documentation nor the tool box in Visual Studio

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Nov 2024
3 answers
149 views
Hello, How to add other control elements to radcheckedListBox,such as radDropDownList or radTextBox or radLabel, etc., and how do I add them at a specified position?
Nadya | Tech Support Engineer
Telerik team
 answered on 19 Nov 2024
1 answer
144 views

I have a self-referencing Hierarchy working fine in .NET Framework 4.8,
now I upgraded to .NET 8 with

UI.for.WinForms.AllControls.Net60   2022.2.808-hotfix


public partial class Form1 : Form
{
    private Person[] _people = {
        new Person() { ID=1, Parent =0, Name = "Hans"},
        new Person() { ID=2, Parent =1, Name = "Fred"},
        new Person() { ID=3, Parent =1, Name = "Mary"},
        new Person() { ID=4, Parent =0, Name = "John"}
    };


    public Form1()
    {
        InitializeComponent();

        radGridView1.Relations.AddSelfReference(radGridView1.MasterTemplate, nameof(Person.ID), nameof(Person.Parent));
        radGridView1.DataSource = _people;
    }
}


public class Person
{
    public int ID { get; set; }
    public int Parent { get; set; }
    public string Name { get; set; }
}

Now, there are errors produced like "enumeration already finished".
Without this AddSelfReference, everything is fine. (just without the collapsable sections)
Setting DataSource first, doesn't make a difference either.

Something must have changed from the 4.8 to your 6.0 version.

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Nov 2024
1 answer
103 views

as following picture shows, I have a hierarchical "Grid View", when the amount of data is too large, I can not see the horizontal scrollbar of “Event”

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Nov 2024
1 answer
104 views
Hello,

I have code similar to this


private void OnCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
    if (/*some-condition-that-are-always-true-for-all-cells-in-specific-column*/true)
    {
        e.CellElement.Children.Clear();
        e.CellElement.Children.Add(new RadButtonElement { Text = e.CellElement.Value?.ToString() });
    }
}

So basically, what I'm trying to achieve is to make GridViewDataColumn look and behave like GridViewCommandColumn (currently I handle clicks on the button inside cells CellClick event handler)


My questions are:
  1. Are there any performance drawbacks of mine implementation (i.e., related to the fact that the cell formatting event could be fired very often) ?
  2. Is there a way to dynamically change grid column types. For example, after data binding, a column becomes a GridViewDataColumn but after clicking a button somewhere in a form it changes to GridViewCommandColumn?
 
Thanks
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Nov 2024
1 answer
97 views

When the GanttView opens, the ratio of the text (left) side to the graphical (right) side is 50/50.

This looks strange, as there may be either lots of space to the right of the right-most column of text, or not enough space if you have lots of columns.

There may be a better way to do this, but to make the left hand (text) columns have the correct with, and stay correct, add this:

  Private Sub resetSplitter()
      Dim allColWidths = 0
      For Each c As GanttViewTextViewColumn In myGanttView.GanttViewElement.Columns
          allColWidths = allColWidths + c.Width
      Next

      If allColWidths <> 0 Then 'might still be initializing
          allColWidths += 5 'removes the horizontal scroll bar from the text part - makes the left hand side look a bit neater
          myGanttView.Ratio = allColWidths / myGanttView.Width
      End If


  End Sub

You can then call this from:

1 - the Load event, so it looks nice at the start and

2 - from the resize, so it stays looking nice:

    Private Sub myGanttView_Resize(sender As Object, e As EventArgs) Handles myGanttView.Resize
        resetSplitter()
    End Sub
Nadya | Tech Support Engineer
Telerik team
 answered on 14 Nov 2024
1 answer
150 views

Hello!

I was trying to use Sorting/Filtering/Grouping while using VirtualMode by using the default properties and methods and wasn't able to. I found this that said "In the future editions of RadGridView, we have planned to implement virtual grouping operations with a simpler and more useful API." in the year 2009. Have there been any changes? Can i use the functionalities that i want while using VirtualMode without having to override and subscribe several events to workaround this problem?

 

JP

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Nov 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
SplashScreen
Flyout
Separator
SparkLine
TreeMap
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?