Hello,
I have an issue about the new search support functionnality in the scheduler.
On the grid displaying the result of a search, there is a column based on the background of the appointements which display a color and a displayname defined by Backgrounds property of the Scheduler and the value set in an appointement.
It have made the following customization with theses backgrounds to fit my need.
' Redefine the background list of Appointement
Dim
vacancesbackground
As
AppointmentBackgroundInfo =
Me
.AbsenceScheduler.Backgrounds(0)
With
vacancesbackground
.Id = Absence.TypeOfAbsence.Vacance
'=1
.DisplayName = EnumHelper.GetDescription(Absence.TypeOfAbsence.Vacance)
End
With
Dim
maladiebackground
As
AppointmentBackgroundInfo =
Me
.AbsenceScheduler.Backgrounds(1)
With
maladiebackground
.Id = Absence.TypeOfAbsence.Maladie
'=2
.DisplayName = EnumHelper.GetDescription(Absence.TypeOfAbsence.Maladie)
End
With
Dim
absencebackground
As
AppointmentBackgroundInfo =
Me
.AbsenceScheduler.Backgrounds(10)
With
absencebackground
.Id = Absence.TypeOfAbsence.Absence
'=3
.DisplayName = EnumHelper.GetDescription(Absence.TypeOfAbsence.Absence)
End
With
Dim
congebackground
As
AppointmentBackgroundInfo =
Me
.AbsenceScheduler.Backgrounds(9)
With
congebackground
.Id = Absence.TypeOfAbsence.Conge
'=4
.DisplayName = EnumHelper.GetDescription(Absence.TypeOfAbsence.Conge)
End
With
Me
.AbsenceScheduler.Backgrounds.Clear()
Me
.AbsenceScheduler.Backgrounds.Add(vacancesbackground)
Me
.AbsenceScheduler.Backgrounds.Add(maladiebackground)
Me
.AbsenceScheduler.Backgrounds.Add(absencebackground)
Me
.AbsenceScheduler.Backgrounds.Add(congebackground)
They are correctly displayed in the result grid except for the one with the Id "1" which display a transparent color and no text.
I'm not really surprised that there is a "special treatment" for this value as the default values 1 of the backgrounds is defined as "None" but is there a way to handle this ? I have attached a exemple screenshot (Record with blank Type should have "Vacances" and blue color)
Thanks for you support
Marco Guignard