How to correctly hide the e-header-row?

Hi,

How do I correctly remove/hide the header row that shows the date (see below)?

My scheduler is ALWAYS on Day view therefore this header is redundant and takes up unnecessary space.

I played around with the CSS/HTML in DevTools but it broke the scheduler appearence..



3 Replies 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team November 28, 2022 11:06 AM UTC

Hi Jack,


You can hide the header rows of the Schedule day view by overriding default Schedule styles with help of the cssClass property of the Schedule as shown in the snippet.


Sample: https://stackblitz.com/edit/ej2-react-schedule-hide-date-headers-sample?file=index.css


[index.js]

function Schedule() {

    return (

        <ScheduleComponent cssClass='header-schedule'>

        </ScheduleComponent>

    );

}

export default Schedule;


[index.css]

.header-schedule.e-schedule .e-vertical-view .e-header-cells {

  paddingunset;

  displaynone;

}

 

.header-schedule.e-schedule .e-vertical-view .e-date-header-wrap table tbody td.e-resource-cells {

  border-bottomunset;

}


Regards,

Ravikumar Venkatesan


Marked as answer

JD Jack Dunn replied to Ravikumar Venkatesan November 28, 2022 11:25 AM UTC

That's great, thank you.



RV Ravikumar Venkatesan Syncfusion Team November 29, 2022 05:16 AM UTC

You're most welcome, Jack


Loader.
Up arrow icon