Hey,
I want to make available just the 1st and the 15th of a month.
How can I get this?
Regards
Greetings,
I want the RadTimePicker to show only Time value , not date. How to do that ?
Thanks
Hello Telerik Team !
I currently try to achieve something similar to the attached picture.
Maybe I took the wrong direction, by using a MaskedEditBox with a DateTime MaskType, I am trying to add an adjacent button picture to open a calendar, and also a drop down button with several standard choice.
By editing UI Elements I notice the presence of a StackLayoutPanel with LightVisualButtonElement, I put both Visibility to Visible and add a little calendar icon image.
I can see It on Visual Studio, but the icon does not appear when I launch the program, and also I don't have any idea what kind of event I need to add if I succeed in showing the icon to open a calendar control to select my date.
So maybe I took a wrong direction by using this controls ?
Any help or suggestion would be highly welcome
Thanks in adavnce
Jeff
Hello Telerik Team,
I'm using RadDateTimePicker with TelerikMetroBlueTheme. And I showed timePickerElement.
In dropDown of dateTimePicker, I found that theme of timePicker showing default theme.
How to change theme of timePicker ?
Hey guys, I've inherited RadDateTimePicker to do a better handling of null value with databinding and the problem is when it got focused by Tab key it borders don't change as it should be. Ive tried setting focus to DateTimePickerElement when my picker got focus, but it didn't solve as well.
public partial class NossoRadDateTimePicker : RadDateTimePicker
{
public NossoRadDateTimePicker()
{
InitializeComponent();
TabStop = true;
this.ValueChanged += NossoRadDateTimePicker_ValueChanged;
this.GotFocus += NossoRadDateTimePicker_GotFocus;
}
private void NossoRadDateTimePicker_GotFocus(object sender, EventArgs e)
{
base.DateTimePickerElement.Focus();
}
private void NossoRadDateTimePicker_ValueChanged(object sender, EventArgs e)
{
if (ShowCheckBox && checking == false)
this.Checked = true;
}
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public new DateTime? NullableValue
{
get
{
throw new Exception("Use Value");
}
set
{
throw new Exception("Use Value");
}
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
/// <summary>
/// Poderá retornar null caso use o checkbox e ele não esteja checkado
/// </summary>
public new DateTime? Value
{
get
{
DateTime? valor = base.Value;
if (ShowCheckBox && Checked == false)
valor = null;
return valor;
}
set
{
//garantir que essa bosta n sete valor fora do range de datas
if (value != null)
{
value = value > MaxDate ? MaxDate : value;
value = value < MinDate ? MinDate : value;
Checked = true;
}
else if (ShowCheckBox)
Checked = false;
checking = true;
base.Value = value ?? DateTime.Now;
checking = false;
}
}
protected override void OnKeyDown(KeyEventArgs e)
{
if (e.KeyData == Keys.Space)
{
this.Checked = !this.Checked;
}
else
{
base.OnKeyDown(e);
}
}
bool checking;
}
RadDateTimePickerElement dtPicker = new RadDateTimePickerElement(); |
dtPicker.Name = "dtPicker"; |
radRibbonBarButtonGroup9.Items.Add(dtPicker); |
hi
i'm using radDateTimePicker with Persian culture (fa-IR) in my win-from application
but when i want to change month to select other date Next button doesn't work
it will stop on some special month like Ordibehesht(اردیبهشت),Tir(تیر),Esfand(اسفند)