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.
Unfortunately, activation email could not send to your email. Please try again.

Hide the Category when no categories are available

Thread ID:

Created:

Updated:

Platform:

Replies:

108083 Apr 3,2013 02:46 AM Apr 16,2013 04:33 AM ASP.NET MVC (Classic) 1
loading
Tags: Schedule
Premith
Asked On April 3, 2013 02:46 AM

 Is there any way to hide the category in schedule control when no categories are available.Also is there a way to change the column header for the resource in schedule from name to something else.The issues are marked in the image.I'm working in asp.net

scheduler_8533c6c8.zip

Uma Maheswari C [Syncfusion]
Replied On April 16, 2013 04:33 AM

Hi Premith,

 

Thanks for your interest in Syncfusion products.

 

#Query1: Is there any way to hide the category in schedule control when no categories are available?

 

It is not possible to hide the category row in the schedule control even when no categories are available (no support by default). Even if we try to hide it with the help of script, the alignments of the appointments will be getting misplaced.

We have tried the below workaround in order to achieve your specific scenario, but this will lead to appointments misalignment.

<code>

script type="text/javascript">

$(document).ready(function () {

 

  $("#" + '<%= Schedule1.ClientID %>' + "_RootContainer").find("td.ResourceCell")[0].parentNode.style.display = 'none';

  $("#" + '<%= Schedule1.ClientID %>' + "_RootContainer").find("div.ContentContainer").find("tr")[0].style.display = 'none';

});
</script>

</code>

 

Therefore, by default, there is no possibilities to hide the category row that is displayed in the schedule.

 

#Query2: is there a way to change the column header for the resource in schedule from name to something else?

 

Yes, it is possible to change the header column name for the resources in the schedule to your specific one. To achieve this, you need to set the  CultureSource property of the schedule control to “UserOverride” and then you can change the resource name to your specific with the help of the property ResourceNameColumnName. Please find the below code snippet:

 

<code>

[Default.aspx]

 

<Syncfusion:Schedule ID="Schedule1" runat="server" Height="400px" Width="800px" StartDate="2013-04-12" ViewMode="Horizontal" EnableCallbacks = "false" AutoPostBackOnScheduleClick="true" CultureSource="UserOverride" ResourceNameColumnName="Resource" >

…….

…..

</Syncfusion:Schedule>

 

</code>

 

For your convenience, we have also prepared a simple sample which can be downloaded from the below link:

SampleASPCheckHeader.zip

 

Please refer the sample and let us know, if you have any other concerns.

 

Regards,

Uma Maheswari C


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.

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.

;