Validating Custom resource dropdown in RadScheduler

9 posts, 0 answers
  1. Kuldeep
    Kuldeep avatar
    25 posts
    Member since:
    May 2013

    Posted 09 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..

    Thanks,
    Kuldeep
  2. Kuldeep
    Kuldeep avatar
    25 posts
    Member since:
    May 2013

    Posted 11 May 2013 Link to this post

    Hi Telerik Team,

    Please any one can solve my problem.

    Thanks & Regards,
    Kuldeep
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 13 May 2013 Link to this post

    Hello Kuldeep,

    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
           }
       }

    Here you may find more information about manipulating different controls on our RadScheduler advanced form including custom validations. 

    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.
  5. Kuldeep
    Kuldeep avatar
    25 posts
    Member since:
    May 2013

    Posted 14 May 2013 Link to this post

    Thanks a lot for quick response. 

    But this code not working proper.
    when i select item in resource then this code also show the message.

    Please any one can help...
     
    Thanks.


  6. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 17 May 2013 Link to this post

    Hello,

     
    Could you please explain what exactly you are trying to achieve? Could you please clarify whether you want to control which items in the resource drop down list could be selected and cancel the selection if user tries to select a restricted item? 

    Kind 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.
  7. Kuldeep
    Kuldeep avatar
    25 posts
    Member since:
    May 2013

    Posted 20 May 2013 Link to this post

    Hi,
    I have two dropdown resource type.
    when i select item in one drop then another dropdown will fill from the database on the basis of first dropdown item.

    this is very urgent .
    please help.

    Regards,
    Kuldeep
  8. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 21 May 2013 Link to this post

    Hello,

    Please find here a knowledge base article that shows how you can implement related RadComboBox controls in the advanced form of the RadScheduler. The second RadComboBox control is populated with data based on the first RadComboBox control user selection. 

    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.
  9. Vikas
    Vikas avatar
    2 posts
    Member since:
    May 2014

    Posted 15 Oct 2014 Link to this post

    Hello Boyan,
                          I tried the solution above which works fine for desktop browsers. on mobile browsers i am not getting the resource combobox reference may be due to the cause that telerik people have made DropdownList render on mobile devices rather than radCombobox not sure though. I want to validate the combobox before saving the appointment [RequiredField]. please provide me the pointers.

    Thanks
    Vikas Joshi    
  10. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 20 Oct 2014 Link to this post

    Hello,

    The RadComboBox is rendered and works fine under mobile browsers. You can access the RadComboBox client-side object the same way as you do that in desktop browsers. Please check for any JavaScript errors using your browser developer tools.

    As for your second question - you can implement some validation logic for your RadComboBox control when user clicks on the "Save" button in the advanced form.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017