Telerik Forums
UI for WinForms Forum
10 answers
244 views
Hello,

I've gone through the tutorial here:  http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-adding-a-custom-field-to-the-editappointment-dialog.html.  I have been able to add my custom field to the scheduler, however when I run the application I get the following error:

Unable to cast object of type 'RadSchedulerDemo.GuardianAppointment' to type 'Telerik.WinControls.UI.IEvent'

This error occurs in the custom AppointmentFactory class I created, as directed by the tutorial, within the CreateNewAppointment function.  I've searched for an answer to this issue but have not been able to find anything related to it.

Any ideas on what could be the problem?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jan 2016
1 answer
258 views
Is there a way to keep the radDateTimePicker dropdown calendar locked open always or locked open until a selection is made regardless of focus?
Dimitar
Telerik team
 answered on 29 Jan 2016
3 answers
254 views

Hi,

 

I would like to store the color resource property on a SQL database like I am doing with the resource Id and name, but I am wondering what data type should I use on the columns definition of the table in SQL. Could anyone help?

 

Thanks,

Rafael

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2016
1 answer
129 views

Hi,

I have a problem with RadRadioButton and RadToggleSwitch.

I would like to change the look of the control depending on the ReadOnly state.

But I can not find an event ReadOnlyChanged

I also try to catch all property changes, but no event is registered when I change the ReadOnly.

((Telerik.WinControls.UI.RadRadioButtonElement)(x.GetChildAt(0))).RadPropertyChanged += ...
((Telerik.WinControls.UI.CheckBoxLayoutPanel)(x.GetChildAt(0).GetChildAt(1))).RadPropertyChanged += ...
((Telerik.WinControls.Layouts.ImageAndTextLayoutPanel)(x.GetChildAt(0).GetChildAt(1).GetChildAt(0))).RadPropertyChanged += ...
((Telerik.WinControls.UI.RadRadiomark)(x.GetChildAt(0).GetChildAt(1).GetChildAt(1))).RadPropertyChanged += ...
 
((Telerik.WinControls.UI.RadRadioButtonElement)(x.GetChildAt(0))).PropertyChanged += ...
((Telerik.WinControls.UI.CheckBoxLayoutPanel)(x.GetChildAt(0).GetChildAt(1))).PropertyChanged += ...
((Telerik.WinControls.Layouts.ImageAndTextLayoutPanel)(x.GetChildAt(0).GetChildAt(1).GetChildAt(0))).PropertyChanged += ...
((Telerik.WinControls.UI.RadRadiomark)(x.GetChildAt(0).GetChildAt(1).GetChildAt(1))).PropertyChanged += ...
 
item.PropertyChanged += ...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2016
6 answers
246 views

How can I display multiple lines of text in a column group header?  I can't see my "Line2" text in the sample below

 

public Form1()
    {
    InitializeComponent();
 
    ColumnGroupsViewDefinition view = new ColumnGroupsViewDefinition();
 
    List<String> cols = new List<string> () {"column2", "column3"};
    view.ColumnGroups.Add (CreateColGroup (cols, "Customer Contact"));
 
    view.ColumnGroups.Add(CreateColGroup(new List<string> (){"DNE", "column1"}, ""));
    this.radGridView1.ViewDefinition = view;
    }
 
private GridViewColumnGroup CreateColGroup (List<string> cols, string  groupName)
    {
    var colGroup = new GridViewColumnGroup(groupName);
    var groupRow = new GridViewColumnGroupRow();
    foreach (var colName in cols)
        {
        if (this.radGridView1.Columns[colName] != null)
            {
            groupRow.Columns.Add (this.radGridView1.Columns[colName]);
            }
        }
 
    foreach (var col in groupRow.Columns)
        {
        col.HeaderText += "\n  Line2";
        }
 
    colGroup.Rows.Add(groupRow);
 
    return colGroup;
    }

Dimitar
Telerik team
 answered on 28 Jan 2016
1 answer
299 views

I am using the Visual Style Builder to make a theme based on the Metro Blue theme that is built-in. I am trying to change the color (currently light blue) that appears as the top border of all RadForms. However, when I go to RadForm->TitleBar->TitleBorder element and change the TopColor and TopShadowColor properties the RadForm Title bar is no longer displayed. I have attached before and after screenshots. I checked and some of the other property values change as a result of changing the TopColor property but I set them back to their previous values but the title bar is no longer displayed.

 Am I missing something?

Hristo
Telerik team
 answered on 27 Jan 2016
1 answer
125 views

Hi,

 I used DayView to display appointment for selected day in RadCalendar. Here are my code:

radScheduler.GetDayView().StartDate = ucPageCalendars.RadCalendar.SelectedDates[0];
radScheduler.GetDayView().DayCount = ucPageCalendars.RadCalendar.SelectedDates.Count;

 

if many days are clicked, I want scheduler have the scrollbar like attached image. There is anyway to do this.

 Looking forward for your answer,

Pham Thanh.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2016
2 answers
145 views

Hi Telerik team,

What would be the best way to assign a shortcut key to a CollapsiblePanel?

 The down below lines did not work for me!.

RadShortcut shortcut1 = new RadShortcut(Keys.None, Keys.F4);<br>            this.radCollapsiblePanel1.RootElement.Shortcuts.Add(shortcut1);<br>or<br>            this.radCollapsiblePanel1.CollapsiblePanelElement.Shortcuts.Add(shortcut1);<br>


Thanks,
Abbas

Abbas
Top achievements
Rank 1
Iron
 answered on 26 Jan 2016
7 answers
726 views
I am using radgridview from Q1 2008 SP1.
The tab key was working till today afternoon, but now it doesn't work anymore.
The tab key was automatically transferring focus to the next cell for editing, but it has suddenly stopped to behave  like this. Instead now the tab key simply ends the edit process for current cell but does not put the next cell into edit mode.
May be someone has solved this issue.
Any feedback would be greatly appreciated as I am on a very tight project deadline for this.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jan 2016
1 answer
115 views

Hi,

 There is any way to show a whole week on a day view as the attached image?

 Looking forward for your answer,

Pham Thanh.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jan 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
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?