BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hello,
I'm searching to remove the blank space under events in the scheduler component.
It seems this property is what I'm searching for:
But when I'm settings this property, I still have a blank space under my events :
I'm using NuGet package Syncfusion.EJ2.AspNet.Core v20.4.0.42.
How can I remove this blank space ?
Hi Julien
Because you enabled the rowAutoHeight property in your code, the enableMaxHeight property does not work in this combination. To remove the blank space under events when rowAutoHeight is set to true, you need to use use the ignoreWhitespace property. Refer to the below UG for more details.
Regards,
Vijay Ravi
Hello,
Thanks for your reply, after implementing ignoreWhitespace, it works for some resources, but I still have some blanks under rows that have only 1 line of events:
How can I remove these blanks ?
Hi Julien,
On our end, we enabled the rowAutoHeight and ignoreWhitespace no blank lines were produced. So we suggest that you make sure that you are using the latest styles and scripts, like those highlighted in the below code snippet. Otherwise, if you still face the issue, share the entire schedule code snippet to proceed further and how styles and scripts are referred to in your project.
[layout.cshtml]
<head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] - ej2_core_schedule</title> <link rel="stylesheet" rel='nofollow' href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" rel='nofollow' href="~/css/site.css" asp-append-version="true" /> <link rel="stylesheet" rel='nofollow' href="~/ej2_core_schedule.styles.css" asp-append-version="true" /> <link rel="stylesheet" rel='nofollow' href=https://cdn.syncfusion.com/ej2/20.4.42/fluent.css /> <script src=https://cdn.syncfusion.com/ej2/20.4.42/dist/ej2.min.js></script> </head> |
Output screenshot:
Regards,
Vijay Ravi
Hi Vijay,
Your last anwser helped me to find out what was wrong with my code.
Indeed, after setting the ignoreWhitespace parameter, styles and css changed a bit for the timeline. But as I was overriding some css classes to reduce rows height, some overrided classes were missing in my code. I needed to add the following css to solve my issue:
.e-schedule .e-timeline-view.e-ignore-whitespace .e-work-cells,
.e-schedule .e-timeline-view.e-ignore-whitespace .e-resource-cells,
.e-schedule .e-timeline-view.e-ignore-whitespace .e-event-container {
height: 32px;
}
Thank you for your support !
Julien,
We are happy that our solution helped you. Let us know if you need any further assistance on this.