When populating a schedule with appointments from my database, i want to have the appointments automatically have their resources (people) assigned. How does this work? Am I to assign the ResourceID of the AppointmentMappingInfo object the resource ID from my database? I am using a business object for my appointments and populating the Resources collection of the RadScheduler manually with the resource name and ID.
What are the options of getting the appointments and resources to be related to each other so when the schedule is displayed, the resource drop down in the Edit Appointments Dialog is assigned the resource? Also, when viewing the schedule in resource grouping mode, the resources are assigned to their appointments.
Me.RadScheduler1.AppointmentFactory = New CustomAppointmentFactory
dataSource.EventProvider.AppointmentFactory = RadScheduler1.AppointmentFactory
Dim appointmentMappingInfo As New AppointmentMappingInfo()
appointmentMappingInfo.Start =
"Start"
appointmentMappingInfo.[End] = "End"
appointmentMappingInfo.Summary = "Subject"
appointmentMappingInfo.Description = "Description"
appointmentMappingInfo.Location = "Location"
appointmentMappingInfo.UniqueId = "Id"
appointmentMappingInfo.Exceptions = "Exceptions"
appointmentMappingInfo.ResourceId = "EmpID"
dataSource.EventProvider.Mapping = appointmentMappingInfo
' assign the generic List of MyAppointment as the EventProvider data source
dataSource.EventProvider.DataSource = appointments
Me.RadScheduler1.DataSource = dataSource
Hi,
In the DateTimePicker I'm looking for an event which happens when a user changes the date (by mouse or keyboard) but not when a date is set- (for example: DateTimePicker1.Value=DateTime.Now)
In other controls I found events or properties which supported this scenario, but in this case I couldn't find.
Thanks
private void gvDocuments_CellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement.RowIndex >= 0) { GridViewColumn col = e.CellElement.ColumnInfo as GridViewColumn; GridViewRowInfo row = e.CellElement.RowInfo; string fieldName = col.Name; if (fieldName == "Id") { if (row.Cells["Status"].Value.ToString() == "T") { e.CellElement.ForeColor = Color.Blue; e.CellElement.Font = font; } else { e.CellElement.ForeColor = Color.Red; e.CellElement.Font = font; } } } }e.CellElement.RowInfo.Cells["column1"].CellElement.ForeColorMe.RadGridView.Rows().Cells().Style.BackColor = Color.Yellow
Me.RadGridView.Rows().Cells().Style.BackColor = Color.Yellow
Me.RadGridView.Rows().Cells().Style.BackColor = Color.Yellow
Me.RadGridView.Rows().Cells().Style.BackColor = Color.Yellow
Me.RadGridView.Rows().Cells().Style.DrawFill = True
I understand that the cell element is gone but this code worked last build using the CellElement but not with the new Style object. I would assume there is a way to change the back color of a cell at run-time. Please give me the correct way so my code will work. Thank you.
OK More Info.....
Me.RadGridView.Rows().Cells().Style.ForeColor = Color.Yellow
this works!!! soooo....just maybe this is something you need to fix with backcolor.. :-)
I find it hard to believe there is no current way with the latest version to set the backcolor of cells at run-time, so any code that works I'll take at this point.
Eric