Telerik Forums
UI for WinForms Forum
2 answers
235 views

Hi,

I'm using "RadControls for WinForms Q3 2011 SP1" internal build "2011.3.11.1219". I would like to show the description on appointment list. I was added the description on appointment buy it not appear on list. It always showing "Location" instead of "Description". I try to change the "AppointmentTitleFormat" but there has no way to show the description. I am testing it on Demo Radschedule\Group. How can i show the description at appointment?

Here is demo sample code from telerik.

 

protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
             
            DateTime baseDate = DateTime.Today;
            DateTime[] start = new DateTime[] { baseDate.AddHours(14.0), baseDate.AddDays(1.0).AddHours(9.0), baseDate.AddDays(2.0).AddHours(13.0) };
            DateTime[] end = new DateTime[] { baseDate.AddHours(16.0), baseDate.AddDays(1.0).AddHours(15.0), baseDate.AddDays(2.0).AddHours(17.0) };
            string[] summaries = new string[] { "Mr. Brown", "Mr. White", "Mrs. Green" };
            string[] descriptions = new string[] { "desc1", "desc 2", "desc3" }; // this is i added
            string[] locations = new string[] { "City", "Out of town", "Service Center" };
            AppointmentBackground[] backgrounds = new AppointmentBackground[] { AppointmentBackground.Business, AppointmentBackground.MustAttend, AppointmentBackground.Personal };
 
            this.radSchedulerDemo.Appointments.BeginUpdate();
            //radSchedulerDemo.AppointmentTitleFormat = "{0} to {1}<br>, {2} ({3}) {4} {5}";
 
            Appointment appointment = null;
             
 
            appointment = new Appointment(baseDate.AddHours(11.0), baseDate.AddHours(12.0), "summary", "description", "Garage");
            appointment.RecurrenceRule = new DailyRecurrenceRule(baseDate.AddHours(11.0), 2);
            this.radSchedulerDemo.Appointments.Add(appointment);
            this.radSchedulerDemo.Appointments.EndUpdate();
                  
            Color[] colors = new Color[]{Color.LightBlue, Color.LightGreen, Color.LightYellow,
                Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue};
 
            string[] names = new string[]{"Alan Smith", "Anne Dodsworth",
                "Boyan Mastoni", "Richard Duncan", "Maria Shnaider"};
 
            for (int i = 0; i < names.Length; i++)
            {
                Resource resource = new Resource();
                resource.Id = new EventId(i);
                resource.Name = names[i];
                resource.Color = colors[i];
  
                resource.Image = this.imageList1.Images[i];
                this.radSchedulerDemo.Resources.Add(resource);
            }
 
            this.radSchedulerDemo.GetDayView().ResourcesPerView = 2;
            this.radSchedulerDemo.GroupType = GroupType.Resource;
            SchedulerDayViewGroupedByResourceElement headerElement = this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewGroupedByResourceElement;
            headerElement.ResourceHeaderHeight = 135;
 
            for (int i = 0; i < summaries.Length; i++)
            {
                appointment = new Appointment(start[i], end[i], summaries[i],
                    descriptions[i], locations[i]);
                appointment.ResourceId = this.radSchedulerDemo.Resources[0].Id;
                appointment.BackgroundId = (int)backgrounds[i];
                this.radSchedulerDemo.Appointments.Add(appointment);
            }
 
            SchedulerDayViewGroupedByResourceElement dayView = this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewGroupedByResourceElement;
            dayView.ScrollToWorkHours();
 
            this.radSchedulerDemo.ActiveViewChanged += new EventHandler<SchedulerViewChangedEventArgs>(radSchedulerDemo_ActiveViewChanged);
            this.radSchedulerDemo.PropertyChanged += new PropertyChangedEventHandler(radSchedulerDemo_PropertyChanged);
            this.radSchedulerDemo.MouseDown += new MouseEventHandler(radSchedulerDemo_MouseDown);
 
            this.radSchedulerDemo.SchedulerElement.SetResourceHeaderAngleTransform(SchedulerViewType.Timeline, 0);
 
            this.radSchedulerNavigator1.AssociatedScheduler = this.radSchedulerDemo;
        }

 

Regards,

ALEX
Top achievements
Rank 1
 answered on 04 Jul 2017
4 answers
1.0K+ views

Hi,

 

How can i set focus  or select the first row  always of filtered grid? I already used gvGenericBrands.Rows[0].IsSelected = true;
                gvGenericBrands.Rows[0].IsCurrent = true; .

 

Please see attached image. Thanks in advance.

 

Dimitar
Telerik team
 answered on 04 Jul 2017
3 answers
211 views

I would like to be able to capture key events from a floating window.

Nothing I've tried seems to fire the OnKeyDown events associated with either the RadForm, FloatingParent or DockWindow.  I wired them up a variety of ways including in DockStateChanged.  Are the key events even intended to work for a floating window?

I'm using version 2017.2.613.40 of UI for WinForms.

I'm creating a new DockWindow with my user control which appears in the tabbed region in the middle of the RadDock.  I then float that window by dragging the tab.  Because the user may have several open floating windows, I want the global shortcut keys to function such as Ctrl+S to save everything even if they are in a floating window.  

Events DO fire from my control that is hosted in the floating window.  However, when one drags the floating window and the focus is on the window, key events don't fire.  

What's the proper way to wire of a floating window to capture key events?

 

Steve
Top achievements
Rank 1
 answered on 03 Jul 2017
2 answers
282 views

I'm using 2017.2.613.40 of UI for WinForms

I have a control hosted in a RadDock floating window.  When changes are made to my control I update the title bar of the host window with an asterisk:

"test"

becomes

"test*"

See attachments.

However, the problem is that the change is not immediately visible.  I have to drag the window before the title will repaint.

I'm using the following code to update the title bar after I acquire the HostWindow.

hostWindow.Text = value;
hostWindow.Invalidate(false);
hostWindow.Update();
hostWindow.Refresh();

But none of these method calls forces the title to repaint.  The text value is clearly getting set properly because as soon as I manually trigger a repaint by dragging the window, the new title value appears.

 

Steve
Top achievements
Rank 1
 answered on 03 Jul 2017
24 answers
1.4K+ views
Seems simple enough...I set BackColor Property on a RadTextBox to something other than System.Control, and it appears to make no change.  I can set ForeColor and get the desired change.  What am I missing?  We are using RadControls for WinForms Q3 2008.

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jul 2017
2 answers
109 views
I have a ListView in Details view, with FullRowSelect set to true. When a cell is clicked, a faint focus rectangle appears around the selected cell. I am assuming I can change the BorderColor of this DetailListViewDataCellElement in the CellFormatting event, but how can I tell if the cell (not the row) is selected?
KKL
Top achievements
Rank 1
 answered on 03 Jul 2017
2 answers
287 views

I have a ListView in Details view, with ShowCheckBoxes set to true. As expected, all ListViewItems have checkboxes next to them.

Is it possible to hide (or disable) checkboxes next to certain ListViewItems? 

KKL
Top achievements
Rank 1
 answered on 03 Jul 2017
10 answers
285 views

We are using version 2016.3.1024.40 and i just want to clear the value.  I have tried setting the value = null and that does not work.  Standard controls that would work just fine.  There has to be a simple way to do this.  I have about 20 controls that I need to do this to.  Just want to take the value/text that is displayed and blank it out.

Thanks in advance.

Mark

Dimitar
Telerik team
 answered on 03 Jul 2017
4 answers
168 views

Hi,

I'm having this error when loading a layout with a CustomAggregate.

I'm attaching the Layout XML

Daniel
Top achievements
Rank 1
 answered on 29 Jun 2017
3 answers
200 views
Visual Style Builder - How to add visible backgorund images on each state of RadButton

Hello.

Could you provide me with steps required to add background image and display it on a button for each Element State of RadButtonElement. I know I need to make FillPrimitive Visibility Collapsed but no Image I add displays. 

I would kindly request a list of step by step things I need to perform to archive a button that uses image and not FillPrimitive for graphics.  Please answer with as many details as possible.

I am using Telerik versions: WinForms v2010.1 504 and WinForms v2010.1 914
Dimitar
Telerik team
 answered on 29 Jun 2017
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?