Telerik Forums
UI for WinForms Forum
1 answer
56 views

So I want the user to choose a time with an interval of 15 mins, I disabled key presses because their is no proper way to handle it to round up to the nearest 15 mins.

Anyways my issue is that I tried using this setup so that the user can easily pick 15 mins interval

      this.ReturnTimePicker.Step = 15;
      this.ReturnTimePicker.TimeTables = Telerik.WinControls.UI.TimeTables.HoursAndMinutesInOneTable;

The result looks like this

So ok, probably a bug or 15 mins is not supported because of how many the choices would be.

So now I decided just to use the 2 tables instead of 1.


  this.ReturnTimePicker.Step = 15;
  this.ReturnTimePicker.TimeTables = Telerik.WinControls.UI.TimeTables.HoursAndMinutesInTwoTables;

The result is

It technically works and it's great but as you can see the Minutes is hidden, I need to drag the popup so it opens up properly.

I don't want my users to do that every time, so I want the control to be already expanded fully

Any fixes or alternatives on this issues? 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2022
1 answer
77 views
   

hi tanks for all controls

what by MouseWheel change mount in radtimepicker and calander

 

Sample code not work!
private void radDateTimePicker_RootElement_MouseWheel(object sender, MouseEventArgs e)
        {

            if(e.Delta>0)
            {

                radDateTimePicker.Value.AddMonths(1);

            }
        }

           

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2022
0 answers
93 views

I wanted to show a clear button to either clear the value or text of the control.

 

The idea is the same as the clear button in 

dateTimePicker.DateTimePickerElement.Calendar.ClearButton

 

But I don't see any ClearButton from its child elements.

 

I came up with the idea to rename the Close Button in

radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement

and to add a clear action on its Click Event.

 

I came up with this code:

radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement.Text = "Clear";
(radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.Children[0] as RadButtonElement).TextElement.Text = "Clear";
(radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.Children[0] as RadButtonElement).ToolTipText = "Clear";
radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement.Click +=
 delegate(object sender, EventArgs e) {  radTimePicker.Value = null;  };​

 

The tooltiptext works as well as the clearing of value. with this, I know that I am using the right button element.

But the Text always revert/return to "Close". 

 

Am I forgetting something?

 

 

Joem
Top achievements
Rank 2
 asked on 15 Sep 2015
1 answer
368 views
I'm storing a DateTime in XML to tell an applicaton when it will shut down.  I intend to use the value of "01/01/0001 00:00:00" to mean that we have no shut down scheduled.  On the form that will get and set this value I am using two controls, a DateTimePicker and a TimePicker, to work with the value.  (I'm open to other options.)

You already taught me how to handle the DateTimePicker so I'm initializing that control like this:
dtpShutDown.NullDate = Convert.ToDateTime("01/01/0001");
dtpShutDown.NullText = "";
dtpShutDown.Value = Convert.ToDateTime("01/01/0001");

I'm not quite there with the equivalent for the time picker.  This gives me the "00:00 AM" text:
tpLogin.NullText = "";
tpLogin.Value = Convert.ToDateTime("01/01/0001 00:00:00");

I would like some way to just blank out the whole value.

I'm working with options while I wait for your response.  A single DateTimePicker with a custom format to include the time may work out better than I had initially thought.  (Regardless, I would like to know how to set the null time for the TimePicker.)

Thank you,
Gary


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Sep 2013
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)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
ValidationProvider
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
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?