OnClientTimeSlotDoubleClick?

11 posts, 0 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 18 Aug 2009 Link to this post

    Why is there a "OnClientAppointmentDoubleClick" client event, but not a "OnClientTimeSlotDoubleClick" event? I found it very annoying that I now only need to click once (OnClientTimeSlotClick), to open my customized AdvancedForm. Would it be possible to make this a doubleclick?
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Aug 2009 Link to this post

    Hello Datamex,

    OnClientTimeSlotDoubleClick will not be much different from OnClientAppointmentInserting. Try using the latter instead.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 18 Aug 2009 Link to this post

    Hello Peter,

    We tried the onClientAppointmentInserting event, but nothing seems to happen.

    For your information we are using webservices with an advanced form.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 19 Aug 2009 Link to this post

    Hello Datamex,

    Still,OnClientAppointmentInserting should be raised. Can you try attaching to the event in a simple scenario with default RadScheduler settings?


    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 25 Sep 2009 Link to this post

    Dear Peter,

    Maybe I should point out that I'm using Webservices, in combination with a customized AdvancedForm. I want to use the double click on the timeslot to raise the AdvancedForm. This AdvancedForm consists of one single UserControl. because I also want that UserControl to return in another screen in which we can insert appointments more rapidly than constantly clicking on the scheduler (we do not want to be dependent of the RadScheduler). This is why we can't make use of the normal way the AdvancedForm is being used, because then the usercontrol wouldn't be able to show up without an instance of the Scheduler.

    I'm now using the OnClientTimeSlotClicked-event to open our RadWindow:
    function ClientTimeSlotClick(sender, e) {  
          var oWindow = $find('<%= AppointmentWindow.ClientID %>');  
          var _slot = e.get_targetSlot();  
          var _startTime = _slot.get_startTime().format("MMM dd, yyyy HH:mm:ss");  
          var _endTime = _slot.get_endTime().format("MMM dd, yyyy HH:mm:ss");  
          var _employeeID = _slot.get_resource().get_key();  
          window.radopen("AppointmentDetails.aspx?StartTime=" + _startTime + "&EndTime=" + _endTime + "&EmployeeID=" + _employeeID, "AppointmentWindow");       
          oWindow.set_title("Insert new appointment");  
        } 

    This works, but the popup is already opened when clicked once on timeslot. I want this to be a double click. Would this be possible?
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Sep 2009 Link to this post

    Hello,

    Can you isolate the problem with OnClientAppointmentInserting not firing in a simple demo and send it to us via a support ticket?

    Kind regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 05 Oct 2009 Link to this post

    Thank you for submitting your inquiry to the Telerik Support.

    Your ticket ID is : 247992

    For reference, please use this number when communicating with the Telerik support about this inquiry.

  9. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 05 Sep 2011 Link to this post

    hi..
    me too need this..
    let me know how it works on OnClientAppointmentInserting client event..
    this event is not firing.....
  10. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Sep 2011 Link to this post

    Hello Shinu,

    You can check this demo that shows that the event fires as expected.

    Regards, Peter
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  11. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 12 Sep 2011 Link to this post

    hi peter..

    anyway thanks for ur reply..

    now its working, fine..
    but i need to popup one custom window instead of default one...
    now both window comes while double click on the scheduler..

    here is my js code

    function onAppointmentInserting(sender, eventArgs)
    {
         
        var _slot = eventArgs.get_targetSlot();
        
        var oWindowAppnt=$find("<%= RadWindowAppointment.ClientID %>");
        oWindowAppnt.setSize(510, 490);
         
        var _startTime = _slot.get_startTime().format("MMM dd, yyyy HH:mm:ss");
        
        var _endTime = _slot.get_endTime().format("MMM dd, yyyy HH:mm:ss");
         
        var _employeeID = _slot.get_resource().get_key();
        
         
       
        oWindowAppnt.setUrl("appointment.aspx?appid=0&ST="+_startTime +"&ET="+_endTime);
        oWindowAppnt.add_close(OnClientCloseAppointment);
        oWindowAppnt.set_modal(true);
        oWindowAppnt.set_showContentDuringLoad(false);
        oWindowAppnt.set_visibleTitlebar(false);
        oWindowAppnt.set_visibleStatusbar(false);
        oWindowAppnt.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);
        oWindowAppnt.show();
        return false;
    }

    then i attached one screen shot.. please check it..


    Thanks
    Shinu
  12. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 13 Sep 2011 Link to this post

    hi.. peter
    got the solution...

    i miss the code  eventArgs.set_cancel(true);  
    now its ok...

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