Hi quick and simple and if anyone can let me know how to do it I would be grateful
Currently I am opening the dialog on double click and all is well but my client wants to open on a single click of the webdayview and I have scoured the forums and docs for an answer and found nada. can this be done?
Many thanks
Richard
Hi,
<script type="text/javascript">
function myClick(oDay, oEvent, src){ // next 3 lines are optional // check if "active" element is clicked var attr = src.getAttribute('uie'); if(attr.indexOf('SLOT') != 0 && attr.indexOf('LABL') != 0 && attr.indexOf('_ADA') != 0) return; // notify webdayview about faked dblclick event oDay._onHandleEvent(src, {type:'dblclick', myEvt:true});}
function myDblclick(oDay, oEvent, src){ // cancel real dblclick event, but keep faked event if(!oEvent.event.myEvt) oEvent.cancel = true;}
</script>
Regards,ViktorInfragistics web team
I've just discovered andinstalled the Infragistics product and I need to open an appointment using a simple click.
Can you please help me in implementing this functionnality by providing me a sted by step procedure because it's not realy clear for me.
Kind regards
Hakim
Hi Hakim,
Before doing anything, please read my first reply in that thread. Dialog on single click is not publically supported feature and suggested work around include usage of private variables and functions. That means, in case of misbehavior, you should not use that.
To implement, you should go to properties of WebDayView in visual designer, expand ClientSideEvents, type-in "myClick" for the Click subproperty and "myDblclick" for Dblclick subproperty.Next you should copy <script> block from my first response and paste it anywhere within the <head> of your page.
If you want to debug, then you may insert "debugger;" or "alert('my click function hit')" statements in those handlers.
Hi Viktor
Many thanks for your response, I've succeeded to open the appointment dialog on single Click, according to your recommendations.
Thank you.