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

Attach Clientside events to Advanced EditForm

7 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 26 Sep 2011, 10:03 PM
Hi,

I want to attach client side  events to StartDate and StartTime controls inside Advanced Edit Form.
On changing  start time I want to modify end time using javascript fxns, similarly I want to modify end time on changing start time.
Is it possible to overwrite existing fxns.

  function ClientFormCreated(sender, e) {
         var advancedEditStartDate= $telerik.$("[id$='Form_StartDate']");
                      advancedEditStartDate.onchange(function() {
                       ModifyEndDate();
                   });

    var advancedEditStartTime = $telerik.$("[id$='Form_StartTime']");
                     advancedEditStartTime.onchange(function() {
                      ModifyEndTime();
                   });


}



 <telerik:RadScheduler ID="rsTicketsSchedule"      OnClientFormCreated="ClientFormCreated" ..

...
 </telerik:RadScheduler>

Thanks,
Prava

7 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Sep 2011, 05:52 PM
Hello Prava,

Please refer to the Using javascript/jQuery and CSS help topic where a similar functionality is shown.

Greetings,
Plamen Zdravkov
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
Prava kafle
Top achievements
Rank 1
answered on 27 Sep 2011, 05:58 PM
Hi Plamen,

I  checked the site" Using javascript/jQuery and CSS " but could not find what I was looking for. I was able to hide the Advanced form  from client side using  jquery.

  var scheduler = $find('<%=rsTicketsSchedule.ClientID %>');
                  scheduler.hideAdvancedForm();

On clicking "save" Button I want to extract all values from Advanced form and update an appointment by using webservice? How can I do that?

Thanks,
Prava
0
Plamen
Telerik team
answered on 30 Sep 2011, 03:30 PM
Hello Prava,

You can try using the WebService binding help topic where is shown where you can generate the sample.
In the help topic that I sent you before there are separate paragraphs that correspond to web service binding mode.

Hope this will help you.

Best wishes, Plamen Zdravkov
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
Prava kafle
Top achievements
Rank 1
answered on 30 Sep 2011, 03:40 PM
HI Plamen,

On clicking "save" Button in Advanced form, My client side code gathers  appointment information and verifies it by using webservice, then if there is a conflict it shows the message box.
  Now if the user hits the 'OK' button then it  sends another request to webservice and  updates database.
  At the end  it sends  ajax request to  refresh the scheduler.

Once the "OK" button is clicked I want to close the advanced form without causing postback. I was able to close it using scheduler.hideAdvancedForm() but after this the  timeslots with different background color  lost it's property and all timeslots in scheduler had  background color with shade of Gray.

I want to close Advanced Form with client script and still maintain the special timeslot background color.

Thanks,
Prava
0
Plamen
Telerik team
answered on 04 Oct 2011, 04:18 PM
Hello Prava,

Please refer to our WebService demo where as you can check there is no post back on opening and closing the Advanced Form.

Best wishes,
Plamen Zdravkov
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
Prava kafle
Top achievements
Rank 1
answered on 05 Oct 2011, 04:36 PM
Hi Plamen,

I would love to use webservice for its speed and perfomance  but  while Reading up through the documentation in webservicebinding-binding.html I noticed this:

Currently, Grouped views are not fully supported when using Web Service data binding. At the moment only Day and Week View grouped by resource are available. The rest will be supported in the next versions.

 Does the current version allow grouping by resources in all views(Day/Month/Timeline and week)?

Thanks,
Prava
0
Plamen
Telerik team
answered on 10 Oct 2011, 11:42 AM
Hi Prava,

In current version Grouping by resources is supported in all views when using WebService databinding when you set ResourcePopulationMode="ServerSide" like in the code:
<WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />

The help topic will be updated thank you for reporting that.

Best Wishes,
Plamen Zdravkov
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
Tags
Scheduler
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Prava kafle
Top achievements
Rank 1
Share this question
or