mouse click on month view to bring up details section

  1. Is there a way to make a single mouse click bring on the details menu rather than a double click?



    2. A variant of a prior question of mine related to above.

    a) Can I make a single click change the default time from midnight to 8 AM to 9 AM and

    b) Can I make a double click change the default time to 12 noon to 1 PM.

    The above would aid in conference scheduling.



    thanks,

    -Mahesh
  1. Is there a way to make a single mouse click bring on the details
    scheduler.attachEvent(“onClick”,function(id,e){
    scheduler._on_dbl_click(e);
    return false;
    })

    >>2. A variant of a prior question of mine related to above.
    You can use onClick and onDblClick event handlers to assign any custom reaction on single and double-clicking.

I will work on it.  I need to figure out how to set the times on clicking.  When I tried something earlier, and then did day view and clicked and dragged to set an event time it then exhibited peculiar behaviour , so it may be in order to implement thick clicking has to differ depending on the view which may it more complicated than it is worth.


Stan,



  I tried:



scheduler.attachEvent(“onClick”,function(id,e){
       scheduler._on_dbl_click(e);
       return false;
})




On month view, a single click fails to bring up the event window.


Hello,


locally the same approach correctly works.


Possibly some custom code causes the problem.


Here is what I have:  It looks like it should work.



   -Mahesh



 



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 “w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>




 
 Conference schedule

 
 <link rel=“stylesheet” href="…/…/codebase/dhtmlxscheduler.css" type=“text/css” title=“Conference schedule"
charset=“utf-8”>
       






 

 html, body{
  margin:0px;
  padding:0px;
  height:100%;
  overflow:hidden;
 } 









 

  

   
 

   
 

   

   

                       
ADMIN MODE: Conference Schedule

   

   

   

  

  

  

  

  
  
 




hello,


it works. The sample is attached


sample.zip (36 KB)


I tried the sample without changing anything.  It does not work on my system?  Can it be browser dependent?



  


Hello,


how did you try to open the sample ? Locally it works in all browsers.

I just extracted locally to my hard drive, and then launched in internet explorer 7.  On month view single click does nothing, double click brings up 12:05 AM.  I assume we are debigging the single dlick / double click issue, and at this point not the time issue. Thanks,

The sample has been tested on different machines in IE7. The issue wasn’t reproduced.
Try to test the sample on other computer - possibly the problem is caused by some plug-ins.


Stan,



    You are correct:  The single click works on an event that already exists.   But, If an event does not exist on the month calendar view, then a single click will not enable creastion of an event which is what I am interested in happening.



 


You can try to use the following method:


var setter = scheduler._click.dhx_cal_data;


scheduler._click.dhx_cal_data = function(e){
scheduler._on_dbl_click(e||event)
setter.apply(this,arguments);
}





It should be called before init() method