How add color in other columns in scheduler agenda view like event.
How add color in other columns in scheduler agenda view like event or how inject own css in column data.
Codeprivate queryCellInfo(args: any) {
if (args.requestType === 'agendacells'
&& $(args.element).hasClass('e-timecolumn')) {
$(args.element).hide();
}
if (args.requestType === 'agendacells' && args.cellType === 'agendaeventcell') {
let dataDesign = " ';
" +
"" +
args.appointment.Status +
"
" +
args.appointment.ResponsibleUser +
"
" +
args.appointment.State +
"
" +
args.appointment.Description +
'
$(args.element).after(dataDesign);
}
if (args.requestType === 'agendacells'
&& args.cellType === 'agendaheadercells'
&& $(args.element).hasClass('e-eventcolumn')
&& $('.e-headercells.statuscolumn').length === 0) {
let headerDesign =
" ' +
" +
this.localization.translate('status') + '
" ' +
" +
this.localization.translate('property-tax/responsible-person') + '
" ' +
" +
this.localization.translate('state') + '
" ';
" +
this.localization.translate('details') + '
args.element.after(headerDesign);
}
}
SIGN IN To post a reply.
3 Replies
NR
Nevitha Ravi
Syncfusion Team
October 31, 2017 04:29 PM UTC
Hi Brijesh,
Thank you for contacting Syncfusion Support.
We have prepared a sample to customize the background color of agenda view columns which can be viewed from the below link.
<Code>
function onQueryCellinfo(args) {
if (args.requestType === 'agendacells' && args.cellType === 'agendaheadercells') {
args.element.css("background-color", "#faa41a"); //to add color in header
}
if (args.requestType === 'agendacells' && $(args.element).hasClass('e-timecolumn')) {
$(args.element).hide();
}
if (args.requestType === 'agendacells' && args.cellType === 'agendaeventcell') {
args.element.css("background-color", "#ffe9cc"); //to add color in event column
}
if (args.requestType === 'agendacells' && args.cellType === 'agendadatecell') {
args.element.css("background-color", "#dcf1f8"); //to add color in date column
}
if (args.requestType === 'agendacells' && args.cellType === 'agendaresourcecell') {
args.element.css("background-color", "#ebf1c4"); //to add color in resource column
}
}
</Code>
Regards,
Nevitha.
BP
Brijesh Pandey
October 31, 2017 05:33 PM UTC
Thanks.
NR
Nevitha Ravi
Syncfusion Team
November 1, 2017 08:55 AM UTC
Hi Brijesh,
We are happy to hear from you. Kindly let us know if you need any assistance.
Regards,
Nevitha.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
BP Brijesh Pandey
- Oct 30, 2017 09:24 AM UTC
- Nov 1, 2017 08:55 AM UTC