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

Validating Custom resource dropdown in RadScheduler

8 Answers 105 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kuldeep
Top achievements
Rank 1
Kuldeep asked on 09 May 2013, 09:50 AM
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

8 Answers, 1 is accepted

Sort by
0
Kuldeep
Top achievements
Rank 1
answered on 11 May 2013, 12:54 PM
Hi Telerik Team,

Please any one can solve my problem.

Thanks & Regards,
Kuldeep
0
Boyan Dimitrov
Telerik team
answered on 13 May 2013, 04:55 PM
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.
0
Kuldeep
Top achievements
Rank 1
answered on 14 May 2013, 10:23 AM
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.


0
Boyan Dimitrov
Telerik team
answered on 17 May 2013, 08:41 AM
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.
0
Kuldeep
Top achievements
Rank 1
answered on 20 May 2013, 09:27 AM
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
0
Boyan Dimitrov
Telerik team
answered on 21 May 2013, 01:11 PM
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.
0
Vikas
Top achievements
Rank 2
answered on 15 Oct 2014, 09:49 AM
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    
0
Boyan Dimitrov
Telerik team
answered on 20 Oct 2014, 08:54 AM
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.

 
Tags
Scheduler
Asked by
Kuldeep
Top achievements
Rank 1
Answers by
Kuldeep
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Vikas
Top achievements
Rank 2
Share this question
or