Attach Clientside events to Advanced EditForm

8 posts, 0 answers
  1. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 26 Sep 2011 Link to this post

    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
  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 27 Sep 2011 Link to this post

    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
  3. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 27 Sep 2011 Link to this post

    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
  4. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 30 Sep 2011 Link to this post

    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
  5. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 30 Sep 2011 Link to this post

    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
  6. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 04 Oct 2011 Link to this post

    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
  7. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 05 Oct 2011 Link to this post

    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
  8. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 10 Oct 2011 Link to this post

    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
Back to Top