Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Scheduler validate ressource

$
0
0
Hello Gora,

You could do that validation by using the client-side API of the Scheduler, similarly as in this Demo. In particular, you could use the save event of the widget and modify its event handler in the following way:
function scheduler_save(e) {
    var attendeesmultiSelect = $('.k-multiselect')
    var selectedAttendees = attendeesmultiSelect.find('option[selected="selected"]');
    if (selectedAttendees.length == 0) {
        alert("There is no selected attendee for this event.");
        e.preventDefault();
    }
}

Regards,
Veselin Tsvetanov
Telerik by Progress
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

Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>