Telerik Forums
UI for WinForms Forum
2 answers
35 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
14 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
1 answer
22 views

I'm opening a Word (docX) document in the rich text editor, and it seems to open with none of the Styles from the original document in it.

So the document formatting looks strange: the default  font seems be called '"NSimSum", and heading are in 'Sitka Banner'.

This MAY be linked to a strage thing in the document.StyleDictionary. It doesn't like iterating through the StyleDefintions:

For example

for each Styles.StyleDefintion in document.StylesRepository

...does not work

dim firstStyle as Styles.StyleDefintion in document.StylesRepository.first

...is ok

so I am using:

            dim styleDef As Styles.StyleDefinition = document.StyleRepository.ElementAt(i)

...which is OK, but strange

Are these two things connected? Am I missing something ?

Thanks

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 09 Apr 2024
1 answer
17 views

I have a callout that opens a control.  I would like the control to stay open even if the user clicks elsewhere -- to close it he'll click on the same button used for opening it.

To prevent the control from closing when the user clicks elsewhere I have set AutoClose to false, but now the control stays open even if I switch to another window, or even another program!  The disembodied control still remains in the foreground.

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Apr 2024
5 answers
22 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
12 answers
424 views
 Hi. I hope, i can explain my problem with Radmenu. When i was add an item with "&" (Accelerator) for character shortcut, underline is everytime showing. For example; When i typed to menu item "&File" it's showing "File" but i wanna see that only, if i press to "Alt" key from keyboard. Other times i wanna see like normal "File"...

 And then, how can i add function keys for shortcut? I mean i wanna use "F1","F5", etc ...

 Is there anyway to do this ? Thanks for help ...
Mr Chuc
Top achievements
Rank 2
Iron
Iron
 answered on 03 Apr 2024
1 answer
13 views

Is there a way to give each ContextMenu Item its own backcolor?

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Apr 2024
1 answer
17 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
19 views

How can I tell if a CHECKBOX contains focus.  We have a specific set of keyboard requirements that if the user clicks the "ENTER" key, the next control should bet set focused, but not change the state of the checkbox.  Clicking the "ENTER" key does change the state.   When you are on a CheckBox, ContainsFocus doesn't seem to work.   So, what we would like to do, is if the CHECKBOX has focus, when the use clicks the "ENTER" key, it just moves to the next control in a tab order and not check the checkbox.  (We are trying to get the DateTimePicker to do the same thing)...

 


protected virtual void HandleKeyDownForForm(object sender, KeyEventArgs e)
{
   if (e.KeyData == Keys.Enter)
   {
      if (ntsRadDateTimePickerDob.ContainsFocus)
      {
         _dobHasNullValue = !ntsRadDateTimePickerDob.NullableValue.HasValue;
      }

      if (radCheckBoxActiveAbsentee.ContainsFocus)
      {
         _activeAbsenteeValue = radCheckBoxActiveAbsentee.IsChecked;
      }

      Control ctl = (Control)sender;
      ctl.SelectNextControl(ActiveControl, true, true, true, true);
   }
}

 

Any help would be greatly appreciated.

 

Thank You.

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

I would have thought that after selecting some rows in a RadListControl and hitting Ctrl-C it would copy the text from those rows, but no - it doesn't copy anything.  I also would have thought that there'd be a standard context menu if I were to right-click on it, but not that either.

Am I missing something, or is this the standard behavior of this control?  If it is, do you have some other listbox control that behaves the way I would expect?

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Mar 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
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)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
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
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
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
ColorBox
Callout
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
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
AIPrompt
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?