Telerik Forums
UI for WinForms Forum
1 answer
64 views

Dear All,

I have a problem.

When I right-click anywhere in RadGridView, I don't want it to display any context menus.

What should I do?

Is this possible?

Best wishes

Dimitar
Telerik team
 answered on 27 Feb 2019
5 answers
73 views

Hello, I am currently implenting the "Check All" functionality in group rows. Using this code that I've found here https://www.telerik.com/support/kb/reporting/details/check-all-functionality-in-group-rows

The "Check All" functionality itself works. But it's causing some trouble when I check more than one row individually. The error I'm getting is "The specified change is invalid." And it happens on this line "if ((bool)row.Cells["Include"].Value == false)"

 

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Feb 2019
3 answers
2.3K+ views

Hi

I use telerik 2018.1.220.40 and now I have problem with error:

System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
   at Telerik.WinControls.UI.ThemedFormBehavior.PaintTitleBar(Graphics hDCGraphics)
   at Telerik.WinControls.UI.ThemedFormBehavior.OnNCPaint(Graphics graphics)
   at Telerik.WinControls.UI.ThemedFormBehavior.OnWMNCPaint(Message& m)
   at Telerik.WinControls.UI.ThemedFormBehavior.HandleWndProc(Message& m)
   at Telerik.WinControls.UI.RadFormBehavior.HandleWndProc(Message& m)
   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

This error occurs several times per day. We need to restart application after this error because it doesn't respond. I don't create any Bitmap manual in my code and when I look at the error's path I think it's good to ask you about the reason of this error. Is it problem with Telerik or should I look for problem in my code?

Dimitar
Telerik team
 answered on 26 Feb 2019
1 answer
892 views

Good morning friends,

Is there a simple possibility to change a certain theme color for all controls?

For example, there is the theme I'm using "visualStudio2012LightTheme1", the predominant color in various controls for this theme is blue, I would like to change that blue to a green.

Thank you very much for your attention!

 

(Sorry for poor English, I'm using a Portuguese translator)

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Feb 2019
0 answers
49 views

Hi, 

I am using Telerik WinForms UI controls, Version - "2016.2.503.40" (Telerik.WinControls).

Facing a weird issue with GridView control version - "2016.2.503.40" (Telerik.WinControls.GridView)

When data or records are not available on the grid I am showing "No records available" text using below code lines,

myGridView.TableElement.Text = "No records available";

 

which works fine Attached screen "01_NoRecordsAvailable.JPG".

When some other window gets pop-up on this screen, "No records available" text disappears.

refer Attached screen "02_NoRecordsAvailable_Disappears.JPG".

No able to find out why the text is getting disappeared in such scenario.

Any help will be highly appreciated.

 

 

Bhoopendra
Top achievements
Rank 1
 asked on 25 Feb 2019
2 answers
59 views
If autosize = false and multiline = false, the RadMaskedEditBox will resize in width, but not height as illustrated in my attached picture.
Ioannis
Top achievements
Rank 2
 answered on 25 Feb 2019
1 answer
367 views
When the Checkbox of the Datetimepicker is unchecked, tab will skip this control.
I understand that the date-time area of the control should be unselectable, however, tab, in my opinion, should go to the checkbox part where clicking space will check/uncheck the checkbox
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Feb 2019
1 answer
86 views

After bind the DropdownList with datatable, I set the Text of the DropdownList in code, if the Text match one of element of the datatable, the SelectedValue should changed at the same time, in my case, it is not, I need to click the DropdownList to change the SelectedValue. 

Anything I can do to sync the action that I get the right SelectedValue  when I set Text match one of element of the datatable?

 

Dimitar
Telerik team
 answered on 25 Feb 2019
6 answers
389 views

Hello,

I will have a short intro explaining why i need that (maybe you can find an alternative) you may skip and go to the code.

i have a scenario like the folowing example:

There is a List of objects, its properties are unknown at compile time (dynamic objects built from database), say these objects only have one property, called ExpireDate.

The user is presented a list of objects (with their expiredate and maybe other properties).

The user wants to change the expiredate for many of these objects to a specific date, the program will let the user select all the objects that need to be changed and edit the expiredate value in one shot.

After the user selected the objects to be changed, the UI will show the user a label and a control for each property:

in our case the control to handle the datetime will have a gray background and a null value if the selected objects have different ExpireDate, will have a white background when the selected objects have all the same ExpireDate value. This way the user knows, looking at a control, if it is blank because all objects have null value or it is blank cause some objects have different values.

Said that, after some work, this was the prototype code:

private void InitializeControlsBackground()
{
    foreach (var c in panel.Controls.OfType<Control>())
    {
        if(EditorModel.GetProperties().OfType<MultiElement.MultiEditPropertyDescriptor>().Any(a=> a.Name == c.Name))
        {
            Color bg = EditorModel.HasManyValues(c.Name) ? Color.Gray : Color.White;
            c.BackColor = bg;
        }
    }
}

the problem is that for some controls the background color changes, but for (example) raddatetimepicker the background color does not change, how can I change the background color for the raddatetimepicker?

 

Best regards

Andrea

 

Hristo
Telerik team
 answered on 25 Feb 2019
5 answers
181 views

Hello everyone,

    When I run the RadTextBox Control program,I select the content of the control RadTextBoxControl,right-click will show copy,paste and other content,

how to copy,paste and change the text showing different languages. Reference picture RadTextBoxControl.jpg

    

    

 

Hello everyone

When I run the RadTextBox Control program, I select the content of the control RadTextBox Control, right-click will show copy, paste and other content, how to copy, paste and change the text showing different languages.

Hristo
Telerik team
 answered on 25 Feb 2019
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
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
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?