Telerik Forums
UI for WinForms Forum
1 answer
95 views
Hi 
 I am using gridviewdatetime column in my gridview (winforms). When user click the cell The calendar popup to select the date. The calendar control have two default button 1. Clear 2. Today. I want to diable or remove the Clear button from calendar popup.
Please reply (Urgent)
Karthik
Top achievements
Rank 1
Iron
 answered on 15 Apr 2024
2 answers
20 views

Hi, 

I'm using RadGridView version 2022.1.222.40.

When the data table I'm using has a lot of data (15.000 for example), when I select an entire column, the cells in SelectedCells collection are normally less than 15.000 (it could be 14996 or 14997) in the SelectionChanged event. With less than 10.000 it seems that works correctly. 

Is there a bug for selected cells when the RadGridView shows more than 10.000 elements?

Regards, 

Evaristo Cuesta.

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Apr 2024
1 answer
9 views

Hi!

I have a RadGridView (v2022.1.222.40) with a high amount of elements (~90000) and when trying to copy a column I see that the Copying is taking too long. Even if I do a dummy code processing the data.

I cancel all the formats except DataFormats.Text, and it still takes too much time.

I have thought about canceling all the formats and saving the data in a variable instead of the clipboard but if I cancel everything, the Pasting event won't be triggered later... Any suggestion?

Here is my code:

private void gridView_Copying(object sender, GridViewClipboardEventArgs e)
{
    if (e.Format != DataFormats.Text)
    {
        e.Cancel = true;
        return;
    }

    // Do some dummy code

    // Save it in the Clipboard
    e.DataObject.SetData(nameof(MyCustomModel), items);
}

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Apr 2024
5 answers
15 views


using System.Windows.Forms;

namespace testGridViewKeyPress
{
    public partial class RadForm2 : Telerik.WinControls.UI.RadForm
    {
        private int count_;
        public RadForm2()
        {
            InitializeComponent();

            count_ = 0;
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            count_++;
            radLabel1.Text = count_.ToString();

            radGridView2.BeginUpdate();
            radGridView2.Rows.Clear();
            //I Want to Process Row Clear And Add
            radGridView2.EndUpdate();

            return true;
        }
    }
}

 


When I hold down the key, I want to clear the row of the GridView and add a new row.

However, when the number of columns increases, even if rows work is performed between BeingUpdate() and EndUpdate(),

All UI is not highlighted or updated.

If the control needs processing when in the press state like this, shouldn't I use gridview?

Or, if there is another solution, please let me know.

+What I want is for all UI to update and operate when a key is pressed.

+My telerik version 2021.3.914.40(Dev)

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Apr 2024
1 answer
11 views

I like to display data like above . Each row's data type could be decimal, integer, or string. Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Apr 2024
1 answer
8 views

 

Hello,

I've created a custom cell in a radgridview so that I can in one column either display a RadDropDownListElement or a RadTextBoxControlElement depending on if the tag of the row has a datatable or not. If it has a datatable it will show the dropdown, otherwise it shows the textbox.

This I've done pretty much according to this tutorial.

https://docs.telerik.com/devtools/winforms/controls/gridview/cells/creating-custom-cells#custom-group-cell-example

 

However, my problem is that the selected index changed event on the dropdown is triggered too early, i.e. before all data has been loaded. Is there a way to get around this? I would like that the selected index changed event only kicked in if all the data of the form has been loaded. This I usually achieve by checking if a flag, e.g. 'IsInitiated', is true in the  beginning of the Sub. But cannot seem to reach such a flag from the custom cell class.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Mar 2024
5 answers
27 views

Hello,

I would like to ask for help with designing parameter editor with subitems. I have editor of test items, each item has some parameters and tolerances (Min, Max). Standard tests have just main tolerances, but some tests have also subitems. More precisely, if test has subitems, only subitems have tolerances, main tolerances are not used. Columns for items and subitems are almost the same, items have parameters and subitems don't have any parameters, but there is just a name of subitem instead of test type of parent item. So first attempt of editor looks like this:

One small question to this solution, how can I show "+" only if there are some subitems?

But I am not satisfied with that design, subitems have own border, own column headers, it's little bit confusing and not very clear. I know it's standard way of master-detail views, but in this case, I would prefer design similar to self referencing hierarchy, because columns are almost the same, just some cells are empty and I have name of subitem name instead of test type.

I have made a second test with selfrefencing and changed the screenshot a little bit to show you what I am trying to achieve. Is it possible to have view similar to this?

I think I can do it with some modified data structures specialized for editor, I can use nullable properties for tolerances and parameters to hide certain cells, handle some events to have those empty cells readonly, maybe it would be tricky to show indented subitem name in test type combo box column, but I think this solution would be a little bit ugly. Is there any better way to do this?

I have attached my test project for tests.

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Mar 2024
2 answers
18 views

Hi!

When using CopyingCellClipboardContent the event is fired x3 times in each cell (once for each supported format). So if I have selected 5 cells the copy will trigger the event 15 times. Is there any kind of event for multiple copies?

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Mar 2024
1 answer
12 views

Hi,

My team is trying to make an update from WinForms 2015.1.331 to the Latest 2024 Q1 Update 2024.1.130. Asked me for the comparison RadGridView component features until 2015 Q1 version(current) vs the rest of improvements/features from current to 2024 Q1 version. Is there a better way to get this comparision without scrolling through all releases and noting down the features and manually analyzing?

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2024
1 answer
21 views

the data has been bind to radgirdview ,how to set the rowspan at runtime ? because must use set DataSource method to render data ,so cann't render the gridview cell by cell.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2024
Narrow your results
Selected tags
Tags
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
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
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?