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

Timer and RadScheduler

1 Answer 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
xtreme
Top achievements
Rank 1
xtreme asked on 04 Nov 2011, 05:17 PM
Hi, I have a Timer and a RadScheduler that uses WebService for data. I want to refresh a Radschduler on the event of Timer_Tick. However, if the RadSchduler is in Insert Mode(Using Advance Template), I would like to cancel that. So, how do I check to know that the RadScheduler is in Insert Mode? Thanks.

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 09 Nov 2011, 07:21 PM
Hello Xtreme,

You could subscribe to the OnClientFormCreated client-side event and make the check for an Advanced Insert/Edit Form as in the example below:
function clientFormCreated(sender, args) {
        var mode = args.get_mode();
        if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert) {
             ***
        } else if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
             ***
        }
    }

For more information about accessing the controls in the Advanced Edit/Insert Form of the RadScheduler, you could refer to the following link: RadScheduler: Customizing the Advanced Form using jQuery and CSS and Handling the Advanced Form from Code-Behind.

Hope this helps.

Greetings,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
xtreme
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or