This is a migrated thread and some comments may be shown as answers.

show business hour button and customzing the schedular

7 Answers 308 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 16 Jan 2011, 11:22 AM
hi
how we can add show business hour button
and how we can customize the advanced template.
And we also want to show the advanced template only not the inline template how we can achive this thing.
?

7 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 17 Jan 2011, 09:34 AM
Hi Ajay,

1) "show business hours" button is shown only when RadScheduler displays 24 hours day. E.g you need to set the ShowFullTime property of the RadScheduler to "true".
2) Please take a look at this demo for customizing the Advanced Template.
3) To be able to show the advanced template only - you need to set the StartInsertingInAdvancedForm="true" and StartEditingInAdvancedForm="true".

Please let me know if you have further questions.

Best wishes,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ajay
Top achievements
Rank 1
answered on 17 Jan 2011, 05:18 PM
do we have any event that is fired when advanced template is loaded or when we click on scheduler?
we want to load some dynamic data when user click on the scheduler
0
Veronica
Telerik team
answered on 18 Jan 2011, 03:36 PM
Hello Ajay,

You can use the OnFormCreated event to prepopulate the RadScheduler data as it fires just before the Inline/Advanced Form is opened. Also you may use the OnClientTimeSlotClick event as it fires when you click on a slot in RadScheduler.

Please let me know if you have further questions.

Regards,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
shubhangi
Top achievements
Rank 1
answered on 24 Feb 2016, 08:37 AM

Hi Ajay,

I want to display 'Show 24 Hours...' only if my created schedule on 5 pm or greater than that. Could you please help me in that.

 

Thanks,

Shubh

0
Hristo Valyavicharski
Telerik team
answered on 26 Feb 2016, 11:39 AM
Hi Shubh,

Can you clarify what do you mean? Please attach screenshot.

Thanks.

Regards,
Hristo Valyavicharski
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
shubhangi
Top achievements
Rank 1
answered on 29 Feb 2016, 07:01 AM

Hi,

Please see the screenshot. You will get idea.

 

 

0
Hristo Valyavicharski
Telerik team
answered on 29 Feb 2016, 12:07 PM
Load the scheduler using Ajax and set the ShowFullTime property to false:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
    var scheduler;
    function pageLoad() {
        scheduler = $find("RadScheduler1");
    }
 
    function loadScheduler() {
        var ajaxManager = $find("ajaxManager");
        ajaxManager.ajaxRequest("5PM");
    }
</script>
 
<telerik:RadAjaxManager runat="server" ID="ajaxManager" OnAjaxRequest="ajaxManager_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ajaxManager">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                <telerik:AjaxUpdatedControl ControlID="ajaxManager" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadScheduler ID="RadScheduler1" runat="server" RenderMode="Classic" AdvancedForm-Enabled="true"
    ShowFullTime="true"
    SelectedDate="09/01/2015" DayStartTime="08:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday"
    LastDayOfWeek="Friday" Height="497px" EnableRecurrenceSupport="false">
    <WeekView UserSelectable="true" />
    <DayView UserSelectable="true" />
</telerik:RadScheduler>

protected void Page_Load(object sender, EventArgs e)
{
    RadScheduler1.Provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), true);
     
}
protected void ajaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "5PM")
    {
        RadScheduler1.ShowFullTime = false;
    }
    else
    {
        RadScheduler1.ShowFullTime = true;
    }
}

Regards,
Hristo Valyavicharski
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Ajay
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Ajay
Top achievements
Rank 1
shubhangi
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or