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

Get resource type names in client appointment insert.

1 Answer 13 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 23 Sep 2013, 08:50 AM
I have a radsceduler bound to a wcf service. I am inserting an appointment from client code as advanced insert form. There how can I get all the resource type names?

Thanks in advance for any help
Henry

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 23 Sep 2013, 10:05 AM
Hi Henry,

Try the following JavaScript code in the OnClientFormCreated event of the RadScheduler.

JavaScript:
<script type="text/javascript">
    function OnClientFormCreated(sender, args) {
        var mode = args.get_mode();
        if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert) {
            sender.get_resourceTypes().forEach(function (type) {
                alert(type.get_name());
            });
        }
    }
</script>

Thanks,
Princy.
Tags
Scheduler
Asked by
Henry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or