Telerik Forums
UI for WinForms Forum
2 answers
83 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
440 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
115 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
477 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
224 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
2 answers
178 views

Hello everyone.

      When I use the RadGridView control, the left-most column of my table is empty. I want it to be the number 1, 2, 3... that generates the automatic sequence. How to set up to achieve this effect.

hong
Top achievements
Rank 1
 answered on 25 Feb 2019
0 answers
85 views

hi

how can disable special LegendElement ?

i want the series in enable but title is disable

asghar
Top achievements
Rank 1
 asked on 23 Feb 2019
1 answer
130 views
how can i print only the currently selected line including its hierarchy ?
so not all lines of the grid dgvOrder but only a certain one !

my code
            GridPrintStyle style = new GridPrintStyle {
                PrintHierarchy = true
            };

            this.dgvOrder.PrintStyle = style;
            RadPrintDocument document = new RadPrintDocument {
                HeaderHeight = 50,
                HeaderFont = new Font("Arial", 16),
                Logo = Image.FromFile(@"Logo.png"),
                LeftHeader = "[Logo]",
                MiddleHeader = "",
                RightHeader = $"{Param.PrintProtocol.Order}\r\n{Param.PrintProtocol.Client}",
                ReverseHeaderOnEvenPages = true,
                FooterHeight = 55,
                FooterFont = new Font("Arial", 12),
                LeftFooter = $"Island: {Param.PrintProtocol.OperationIslandNo}\r\nKS: {Param.PrintProtocol.OperationCostCenter}\r\nOperation: {Param.PrintProtocol.Operation}",
                MiddleFooter = $"\r\n \r\n[Page #] / [Total Pages]",
                RightFooter = $"\r\n \r\nProtocol: {Param.PrintProtocol.OperationProtocolType}",
                ReverseFooterOnEvenPages = true,
                AssociatedObject = dgvOrder
            };

            RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(document);
            dialog.ShowDialog();  

thanks !!
Hristo
Telerik team
 answered on 22 Feb 2019
4 answers
216 views

I have a couple questions regarding Panorama:

    s it possible to change the scroll type from horizontal to vertical

Dimitar
Telerik team
 answered on 22 Feb 2019
4 answers
130 views

Hello,

I found a weird behavior that if the text of RadGalleryItem is longer than the image width, the margin/padding settings will lost.

To reproduce the issue, I changed the demo from:

https://www.telerik.com/forums/radgalleryelement-display-issue

RadGalleryItem blueItem1 = new RadGalleryItem("blue 1", Properties.Resources.group);
this.radGalleryElement1.Items.Add(blueItem1);
blueItem1.TextImageRelation = TextImageRelation.ImageAboveText;
blueItem1.ImageAlignment = ContentAlignment.MiddleCenter;
blueItem1.Margin = new Padding(1);
RadGalleryItem blueItem2 = new RadGalleryItem("blue 222222222", Properties.Resources.group);
this.radGalleryElement1.Items.Add(blueItem2);
blueItem2.Margin = new Padding(1);
blueItem2.TextImageRelation = TextImageRelation.ImageAboveText;
blueItem2.ImageAlignment = ContentAlignment.MiddleCenter;
RadGalleryItem blueItem3 = new RadGalleryItem("blue 3", Properties.Resources.group);
this.radGalleryElement1.Items.Add(blueItem3);
blueItem3.Margin = new Padding(1);
blueItem3.TextImageRelation = TextImageRelation.ImageAboveText;
blueItem3.ImageAlignment = ContentAlignment.MiddleCenter;
RadGalleryItem blueItem4 = new RadGalleryItem("blue 4", Properties.Resources.group);
this.radGalleryElement1.Items.Add(blueItem4);
blueItem4.Margin = new Padding(1);
blueItem4.TextImageRelation = TextImageRelation.ImageAboveText;
blueItem4.ImageAlignment = ContentAlignment.MiddleCenter;

 

Please see the attach photo.

I've done 3 tests. First 2 tests work well as long as the text size is shorter than image width.

In the third one, I named on purpose blueItem2 with a long name "blue222222". In this case, I've lost all my margin settings.

 

Dimitar
Telerik team
 answered on 22 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
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?