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,
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.
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?
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.
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?
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
Hi,
I'm having this error when loading a layout with a CustomAggregate.
I'm attaching the Layout XML