Telerik Forums
UI for WinForms Forum
3 answers
270 views

Quote from https://docs.telerik.com/devtools/winforms/controls/gridview/rows/formatting-rows:

"To customize the non-data rows (header row, new row, filtering row, etc) of RadGridView, you need to handle the ViewRowFormatting event."

 

In that regard, how can I detect newly added row/s from ViewRowFormatting event?

Please know that I couldn't use the CreateRow event since it uses UI virtualization and it doesn't trigger for newly added rows that are not "visible" on the screen.

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Jul 2020
5 answers
1.0K+ views

Hi, 

I am just trying to drag&drop a file from the desktop to a simple radForm but DragDrop event do not fired, others events as DragEnter/DragOver/DragLeave works without problems but I can not detect when the user perform drag&Drop with the file into the form.

any idea why I can not catch this event?

namespace Drag
{
    partial class RadForm1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows Form Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.visualStudio2012LightTheme1 = new Telerik.WinControls.Themes.VisualStudio2012LightTheme();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // RadForm1
            //
            this.AllowDrop = true;
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(643, 488);
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "RadForm1";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "RadForm1";
            this.ThemeName = "VisualStudio2012Light";
            this.DragDrop += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragDrop);
            this.DragEnter += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragEnter);
            this.DragOver += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragOver);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        #endregion
 
        private Telerik.WinControls.Themes.VisualStudio2012LightTheme visualStudio2012LightTheme1;
    }
}
 
namespace Drag
{
    partial class RadForm1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows Form Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.visualStudio2012LightTheme1 = new Telerik.WinControls.Themes.VisualStudio2012LightTheme();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // RadForm1
            //
            this.AllowDrop = true;
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(643, 488);
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "RadForm1";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "RadForm1";
            this.ThemeName = "VisualStudio2012Light";
            this.DragDrop += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragDrop);
            this.DragEnter += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragEnter);
            this.DragOver += new System.Windows.Forms.DragEventHandler(this.RadForm1_DragOver);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        #endregion
 
        private Telerik.WinControls.Themes.VisualStudio2012LightTheme visualStudio2012LightTheme1;
    }
}

 

Thanks a lot.

Francisco

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jul 2020
1 answer
2.6K+ views

I'd like to change progressbar color depending on value, for example:

>50 - red

<=50 - green

 

How to do it in app? 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Jul 2020
12 answers
348 views
I've changed some values on the Ruler element:

Startscale : 7
Endscale : 19
RangeFactor : QuarterlyHour


Problems encountered (tested over DayView):
1. Appointment area below the 12th has no lines

2. When right clicked over the appointment area and selected Next or Previous Day, the scale and range values return to their default values. Where can I find the property to set the values found for those two items in the context menu?

Also, if I may ask another question:
How can I change the text and remove items from the context menu? (e.g. New Appointment changed to New Meeting)


Sample Project Solution
http://www.megaupload.com/?d=D3SP8XR6
Ivan
Top achievements
Rank 1
 answered on 13 Jul 2020
4 answers
217 views

I create the PropertyGrid in Dock Window.

This Window has a size less then PropertyGrid.

But: the function  RadPropertyGrid1_CreateItemElement works for visible items only and all unvisible is not created and it is the reason of exception.
How to  force the RadPropertyGrid1_CreateItemElement  works for all items in the propertyGrid ?

 

 

Oleg
Top achievements
Rank 1
 answered on 13 Jul 2020
1 answer
164 views

I have configured a radgridview element where we load approximately 1000 records. After loading the Database elements, I need to configure an icon column as shown in the image (IMG01). This icon is not part of the information of the database object but I load it directly to the radgridview column (IMG02). On the first item load this loop takes no more than 1 second for the 1000 items in the table.

If I make any changes and reload all the information from the database, the next execution of that loop takes about 40 seconds.

The image code IMG02 always runs after the image code IMG03.

Is there a way to improve the loading of these images in the radgridview element?

Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jul 2020
1 answer
953 views
hello is it possible to copy a row and paste it into a new row added in a unbound RadGridView winform?
I am attaching a screenshot of the RadGridView
If it cannot be done with copy paste from keyboard or mouse, can it be done with programming?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jul 2020
4 answers
307 views

I ma using Telerik.WinControls.Export.GridViewSpreadExport to export data to XLSX.

The CellFormatting event is not called when using RunExportAsync().

It is only called when using RunExport();

Why is that?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jul 2020
2 answers
349 views
I’m using WinForms RadMaskedEditBox  MaskType: Numeric, Mask: c2, whenever I try to type negative number example: -$1.00 I get ($1.00), the minus sign - disappears and I get parenthesis () instead.
Is there a way to get negative currency number in MaskedEditBox?
Mujaqo
Top achievements
Rank 1
 answered on 09 Jul 2020
4 answers
1.0K+ views

Hello

I have a grid that is bound to a view of my SQLdatabase (using Entity frame work)
In order to process a change in a cell value I can not use "context.savechanges" since the Binding is to a Query (view) and not a table
I have Search in two directions:
1. Discard the pending changes in the context and write a function to apply the cell change 
but I have not found a way to discard the changes in the context

2. the other direction I have searched is  to get the changes before the value changed event is fired and process it through my function
But here also I have not managed to make it work

I hope this is understandable ...

 

Thanks in advance for any suggestion

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Jul 2020
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
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?