I'm trying to get a reference to the bindingsource at run-time. The reason is that I use a tableadapter for appointments and I have a field called 'Call Id'. This isn't on the AppointmentDialog, but everything else is like subject etc. How do I reference my new field from within the appointment dialog? (I have already extended it)
Thanks
4 Answers, 1 is accepted
Thank you for writing.
If I understand you correctly, you want to modify a custom appointment in a custom EditAppointmentDialog. In this case you could refer to the available documentation. I you additional questions, feel free to write back.
Kind regards,
Dobry Zranchev
the Telerik team
Me
.schedulerDataSet = New SchedulerDataSet()
Dim appointmentsAdapter As TBL_SCHEDULERTableAdapter = New TBL_SCHEDULERTableAdapter()
Try
appointmentsAdapter.FillByUser(
Me.schedulerDataSet.TBL_SCHEDULER, iUser)
Dim dataSource As SchedulerBindingDataSource = New SchedulerBindingDataSource()
appointmentMappingInfo.Start =
"DATE_FROM"
appointmentMappingInfo.End =
"DATE_TO"
appointmentMappingInfo.Summary =
"SUMMARY"
appointmentMappingInfo.Description =
"DESCRIPTION"
appointmentMappingInfo.Location =
"LOCATION"
appointmentMappingInfo.BackgroundId =
"APPOINTMENT_TYPE"
appointmentMappingInfo.StatusId =
"STATUS_ID"
dataSource.EventProvider.Mapping = appointmentMappingInfo
schRequestor.DataSource = dataSource
dataSource.EventProvider.DataSource =
Me.schedulerDataSet.TBL_SCHEDULER
Thank you for writing back. Unfortunately, I can no understand where exactly the problem is. If only the field is missing then you could follow the available documentation for custom edit appointment dialog and binding to custom field. If these do not help, please provide a sample example and describe in more details what is your purpose. I will looking for your response.
Greetings,
Dobry Zranchev
the Telerik team