Telerik Forums
UI for WinForms Forum
3 answers
1.1K+ views

Hi Telerik

I am using the RadDateTimePicker to allow the user to select a date and a time.

I have successfully set the MinDate and MaxDate to limite the user to a date range and I also set the MinTime and MaxTime to limit the user to an allowable timeslot.

We now require the user to be restricted to different time slots on different days i.e. Monday to Friday 09:00 - 17:00, Saturday 10:00 - 14:00 and Sunday 12:00 - 13:00 to reflect different opening hours of a shop.

When setting the MinTime and MaxTime i use the following code:

var rdtpc = this.rdtp_TargetDate.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar;
rdtpc.ShowTimePicker = true;
rdtpc.TimePicker.TimePickerElement.MinValue = DateTime.Today.Date.AddHours(9);
rdtpc.TimePicker.TimePickerElement.MaxValue = DateTime.Today.Date.AddHours(17);

 

This is fine for a single time range, but what event do I need to wire up to allow me to set different enabled time range for different days/dates?

Thanks

 

 

Hristo
Telerik team
 answered on 03 Oct 2018
2 answers
172 views

Hello,

Does anybody know how to get the name of the control (Listview) when using the DragDropService >> PreviewDragOver >> e.HitTarget ?

I have got multiple listviews on a form and depending on the source the DragItem may not be dropped.

Grtz Patrick Vossen

 

Johan Feijen
Top achievements
Rank 1
 answered on 03 Oct 2018
2 answers
246 views

Hi,

 

I'm creating a RadCheckedListBox at run time and adding various items to it, some of which are checked and others which are not. Based on other data, I would like to override the default colour of the "tick" (currently green) to red, but not for all items only some of them. Is this possible ?

Regards
Toby

Toby
Top achievements
Rank 1
 answered on 03 Oct 2018
0 answers
218 views

Hey guys, this is just a warning, u have set the font on RadDropDownListElement and RadCheckBoxElement so we can't change the font of RadDropDownList and RadCheckBox at design time, I had resolve it on my personalized theme removing the font applied repository item and I don't konw if u already fixed it, there maybe is another controls with the same problem, but I haven't noticied it.

 

Sorry for bad english

Leandro
Top achievements
Rank 1
 asked on 02 Oct 2018
1 answer
125 views

Hey,

I want to make available just the 1st and the 15th of a month.

How can I get this?

 

Regards

Dimitar
Telerik team
 answered on 02 Oct 2018
4 answers
822 views

Hi,

I'm trying to being able to show or a hide an icon on a button when a PDF has been loaded. How do I show/hide an imported image resource for the project. Attached is a screenshot of the button when I set the image at design time but I need a way to show/hide this in code. Thanks!

J

Jeffrey
Top achievements
Rank 1
 answered on 01 Oct 2018
1 answer
132 views
The Dropdown starting letters getting hide on form open, But when i click this dropdown and after click next control, the dropdown letters are visible. Is there any property to show it while opening the form.
Please check the attached image,
Thanks in Advance.
Dimitar
Telerik team
 answered on 01 Oct 2018
4 answers
576 views

Hi,

I have a uerControl, MyUserControl, that contains a RadRichTextEditor. The method that initializes MyUserControl instantiates a new RadDocument for the RadRichTextEditor. The new document is sometimes empty (no sections) and sometimes has one section that contains a paragrph!!! I have the following code to remove the initial paragraph (2 versions) and they both crash. What is the right way of doing it?

public void InitMyUserControl()
{
     textEditor.RichTextBoxElement.BackColor = Color.White;
      textEditor.Document = new RadDocument();
      if ( textEditor.Document.Sections.Count != 0)
      {
            var block =  textEditor.Document.Sections.First.Blocks.First;
             textEditor.Document.Sections.First.Blocks.Remove(block);
      }

      OR

      if ( textEditor.Document.Sections.Count != 0)
      {
            Section section =  textEditor.Document.Sections.First;
             textEditor.Document.Sections.Remove(section);
      }
}

Thanks,

Shahrzade.

Hristo
Telerik team
 answered on 01 Oct 2018
3 answers
405 views

I export the radgridview to pdf with header and footer. How to have multiple lines of header with different font size?

Telerik.WinControls.Export.GridViewPdfExport exporter = new Telerik.WinControls.Export.GridViewPdfExport(this.radGridView1);

Thanks.

Hristo
Telerik team
 answered on 01 Oct 2018
1 answer
193 views

In grid view open property builder, I've added the header column field and I'm assigning data source in the code behind.

From the below link solution, For the gridlines alone we tried to set the style but it's not working.
link: https://www.telerik.com/support/kb/winforms/gridview/details/radgridview-merge-celss
How to set the for the grid rows without the header.

Attached image for your reference.

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