Telerik Forums
UI for WinForms Forum
1 answer
181 views

Hi, 

   I tried to set FontSize of a RadSplitButton in the designer, or set it in the code like: this.radSplitButton1.Font = new System.Drawing.Font(...).

   But nothing changed.

   Finally I found the way which works:   

    this.radSplitButton1.DropDownButtonElement.ActionButton.Font = new System.Drawing.Font(...).

   It's so complex just to change a Font.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Apr 2016
1 answer
201 views

Hi,

I want to use the Pan and Zoom features of the RadChartView with a continuous date time axis and a candlestick chart.

I'd like to have only a fixed number of data points visible. When more data points are shown they should be scrolling out of the view on the left or right hand side. It's all working nicely once I zoom into the chart - with the exception, that the RadChartView always tries to fit all data points into the view when the horizontal zoom factor is 1. The result is, that the data points's width is influenced by the number of data points. Regardless of the zoom factor.

Is there a way to enforce a fixed with of the Olhc data points shown on the chart - regardless of the number of data points?

Regards,

Mike 

Hristo
Telerik team
 answered on 07 Apr 2016
1 answer
149 views

Is there any easy way to get notified if the user changes the palette through the right click menu?

 

I am currently handling the ContextMenuOpening event so that I can find all of the palette menu items and add click event handler individually, but this is awkward and I was hoping for a more direct method.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2016
1 answer
361 views

I'm running into an issue with format of a datetime column when exporting to excel.

What I am trying to do is export  datetime column to excel and format as the full datetime on excel, how the various approaches i have tried do not seem to work.

I can get the export to appear to show up as a datetime by:
column.ExcelFormatString = "M/d/yyyy h:mm tt"
column.ExcelExportType = DisplayFormatType.Text;

 

The problem with this is, that when i put I put a filter on the column in excel, it only sorts alphabetically not by date.

The closest I am able to get behavior wise is this:
column.ExcelFormatString = "M/d/yyyy h:mm"
column.ExcelExportType = DisplayFormatType.Custom;

 

This allows me to sort by date, but makes the time portion 24 hr format. If I try this with "M/d/yyyy h:mm tt" it ignores the AM/PM indicator and just writes "tt" at the end.

Ideally what I would like is a away to get the datetime to show up in 12 hour format in excel ("M/d/yyyy h:mm tt") while still being able to sort by Earliest/Latest instead of Alphabetically.

Any help would be appreciated, thanks.

 



Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2016
3 answers
282 views

 

I've got some weird custom logic to implement on a text field, for which the best solution seems to be a Custom Editor using a RadDropDownListEditorElement. I want the Enter key to commit the current selection and end editing.  The default behavior when Enter is pressed is to close the Popup, but leave the editor focused in edit mode.

I tried the following (inside the Custom Editor class I defined):

radDropDownListEditorElement.KeyDown += (o, args) =>
{
    if (args.KeyCode == Keys.Enter)
    {
        var cell = parentGridView.CurrentCell;
        parentGridView.EndEdit();
        cell.ViewInfo.Refresh();
    }
};

 

This works fine if the popup is already closed (for example, by pressing Enter twice, or clicking the mouse and THEN pressing Enter).  But when the popup is open, KeyDown never gets fired.  I've tried capturing radDropDownListEditorElement.Popup.KeyDown and PopupForm.KeyDown, with no luck.  Any idea how to get keypresses when the Popup is open, or a better way to achieve this functionality?  Using a Custom Editor is required for other reasons.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2016
1 answer
686 views

When a user changes their screen scaling either by resolution or DPI settings the following works for native windows controls but not for Telerik -- why is this?

 

            this.AutoScaleMode = AutoScaleMode.None;
            foreach (Control c in Controls)
            {
                c.Font = new Font("Segoe UI", 9);
            }

Thanks in advance

Hristo
Telerik team
 answered on 07 Apr 2016
25 answers
2.6K+ views
How do I set the selected item (without using the index) from code? With combo box I just set SelectedItem to a string containing one of the items. I don't seem to be able to do that with DropDownList?

Steve
Vitaly
Top achievements
Rank 1
 answered on 07 Apr 2016
2 answers
380 views

I am using the WinForms 2016 version.

I have discovered that selecting the first item in the combobox in code is not calling the SelectedIndexChanged of the same control.

<b>mcc_Scaffold_Tag.SelectedIndex = 0 </b>

 

Am I using the right event?

 

 

 

 

 

Speedy
Top achievements
Rank 1
 answered on 06 Apr 2016
5 answers
130 views
Hi,

I have a grid with 3 Cols: Player, Team, Points.
When I group to Teams, it sums the point from each player to the team result.

Now i want the best team on the first group and so on.

How can I do that?

Greetings

Konrad
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2016
3 answers
137 views

Hi,

how to Group by Day and not by Resource?

Is there a way to do that?

We like to have a "DayView" where all Resources are listed at one Day/Date.

 

Regards

Hardy

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2016
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?