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

Add a custom form?

1 Answer 44 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 15 Nov 2011, 12:57 AM
I'd like to add a custom form to show some read-only details about an appointment as a modal popup, sort of like the Advanced Form but simpler and without the ability to change any values. Is this possible?
I have a rt-click context menu set up already to trigger this form, but I can't figure out a way within Scheduler. I can do it with a standard modal popup from my page, but would prefer to use something that comes from Scheduler if possible. Thanks!

1 Answer, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 15 Nov 2011, 09:31 AM
Matt,

Are you looking to do this so your form shows instead of the Advanced Form in some cases?

If not, all you need to is call a JavaScript function to open a RadWindow with your form in it.

If on the other hand what you are trying to do is handle the normal Scheduler events to show your form under some conditions and the regular form under others, then the FormCreating event is your friend.

Basically, you wire up the FormCreating event, test to see if the conditions are right for your custom form, if they are, set e.Cancel = true and call code to open your own form. If they aren't just let the Scheduler do it's thing.

Hope this helps. Sorry if I've misunderstood your requirements.

-- 
Stuart
Tags
Scheduler
Asked by
Matt
Top achievements
Rank 1
Answers by
Stuart Hemming
Top achievements
Rank 2
Share this question
or