Validating Custom drop down in RadScheduler

2 posts, 0 answers
  1. Ranjan
    Ranjan avatar
    38 posts
    Member since:
    Sep 2011

    Posted 08 May 2013 Link to this post

    Hi,

     

    I want to validate Custom resource fields in radscheduler on client side when i click on save button in insert and update case.

    Please help..

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 13 May 2013 Link to this post

    Hello,

    An easy and convenient way of achieving such functionality would be to access the RadComboBox object in the advanced form as shown in the code snippet below:
    //markup code

    <telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientFormCreated="ClientFormCreated">
    </telerik:RadScheduler>

    //JavaScript

    function clientFormCreated(sender, args) {
           var $ = $telerik.$;
           var mode = args.get_mode();
           if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
                       mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
               var RoomComboBox = $find($("[id$='Form_ResRoom']").attr("id"));
               //here goes your validation logic
           }
       }

    Regards,
    Boyan Dimitrov
    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.
Back to Top