We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide the additional day of extra day schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

141194 Nov 29,2018 09:49 AM UTC Dec 3,2018 07:04 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: Schedule
Trinquier Vannick
Asked On November 29, 2018 09:49 AM UTC

Hi, 

So i create a schedule that start from 21.00 to 05.00 the next day :


Is it possible to hide the additional block created for the next day ?

Vinitha Devi Murugan [Syncfusion]
Replied On December 2, 2018 07:16 AM UTC

Hi Trinquier, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we have achieved your requirement through a DataBound event. We have prepared the sample with below highlighted code changes, and the same can be downloaded from the following location . 


Index.cshtml 

@Html.EJS().Schedule("schedule").Width("100%").Height("550px").SelectedDate(new DateTime(2018, 4, 22)).Group(group => group.Resources(ViewBag.Resources)).Resources(res => { res.DataSource(ViewBag.Owners).Field("ProcessId").Title("Assignee").Name("Owners").TextField("text").IdField("id").ColorField("color").AllowMultiple(true).Add(); }).DataBound("onDataBound").Render() 
 
<script type="text/javascript"> 
    function onDataBound() { 
        var scheduleObj = document.getElementById('schedule').ej2_instances[0]; 
        var list = scheduleObj.element.querySelectorAll(".e-indicator.e-icons.e-left-icon"); 
        for (let i = 0; i < list.length; i++) { 
            (list[i]).parentNode.parentElement.style.display = 'none'; 
        } 
    } 
  </script> 



Regards, 
M.Vinitha devi 



Trinquier Vannick
Replied On December 3, 2018 06:49 AM UTC

Yes thank you its perfect 

Karthigeyan Krishnamurthi [Syncfusion]
Replied On December 3, 2018 07:04 AM UTC

 
We are happy that our solution fulfilled your requirement. 
 
Regards, 
Karthigeyan 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;