Telerik Forums
UI for WinForms Forum
5 answers
162 views
hi,

When I populate my GanttView with datas, for example my Task starts on 1.1.2010 and ends on 1.1.2012, even with 

this.radGanttView.GanttViewElement.GraphicalViewElement.TimelineRange = TimeRange.Year;

the scaling of that is horrible. I would like to scale the whole view better. Or even better, I want that the user scales the timeline it self
with for example a TimeLine Scrollbar to zoom in and to zoom out. 

I have attatched a file!
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 21 Oct 2024
1 answer
37 views

I have a grid with header and child rows. Some columns are the same in the child rows but not everything.

How can I align the columns properly that the header and the child are below each other?

vb: colum1 column2 column3 column4

    column1                 column3

Like in the screenshot. I have to align the yellow, blue and red columns. But the other columns don't have to be visible in the child. 

 
Nadya | Tech Support Engineer
Telerik team
 answered on 17 Oct 2024
1 answer
44 views

Hi, I have a RadGridView with the first 2 columns pinned, and the other columns allow reordering.

The first 2 columns are pinned, but I can move an unpinned column between the pinned columns or to the extreme left, so now I have three pinned columns.

Is it possible to fix this?

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Oct 2024
1 answer
46 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?

Nadya | Tech Support Engineer
Telerik team
 answered on 11 Oct 2024
1 answer
111 views

HI

Q3 2024 462

When The table contains a large number of rows. (I checked 550 rows and 30 columns (Example) ).
When I scroll with the scroll with the arrow on the screen reduced to the width, the scrolling is reasonable and smooth.
But if I'm on a widescreen the scrolling is stuck and not smooth.
For this purpose, I reduced the screen width and clicked on the scroll down arrow. And in 550 lines it took about 18 seconds to get from top to bottom. On a wide screen it took 50 seconds to scroll from top to bottom
I did the test on a static table that only loaded simple information and presented it without events or other manipulations on the table.
In the real world it is much worse because there are also online updates on the table and formatting. And if there are many rows in the table many times the screen freezes on scrolling.

Please your urgent help.

Example:

using System;
using System.Data;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace WindowsFormsApp2
{
    public partial class Form1 : RadForm
    {

        int colCount = 30;

        public Form1()
        {
            InitializeComponent();
            this.Width   = 650;
            this.Height = 1050;
            this.StartPosition = FormStartPosition.CenterScreen;
            radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
      }

        private void radButton1_Click(object sender, EventArgs e)
        {
            AddColumnsAndRows();
        }

        private void AddColumnsAndRows()
        {
            DataTable dt = new DataTable();
            for (int i = 0; i < colCount; i++)
            {
                dt.Columns.Add("ColName_" + (i + 1), typeof(string));
            }

            for (int row = 0; row < 550; row++)
            {
                DataRow dr = dt.NewRow();
                for (int col = 0; col < colCount; col++)
                {
                    dr[col] = "DataTest_C" + (col + 1) + "_R" +  (row + 1);
                }

                dt.Rows.Add(dr);
            }

            radGridView1.DataSource = dt;
            radGridView1.BestFitColumns();
        }
    }
}

Nadya | Tech Support Engineer
Telerik team
 answered on 11 Oct 2024
2 answers
39 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
57 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
1 answer
85 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
43 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
81 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?