iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
hi,all
I want to know how can i do this:
I can add event by clicking right button of mouse and selelct "add event" but i can not add event by clicking left button of mouse!
thank you !
I enclosed one the test page as attachment that I made based on your scenario description.Please have the attached sample tested on your and let us know whether it helps or not.
Hi Srikant,
Please use the code below to hide callout completely.
function WebScheduler1_OnCallOutShow(controlId, action) { var WebScheduler1 = ISGetObject(controlId); var el = WebScheduler1.GetCallOutElement(); if (el != null) if (el.style.display == "") el.style.display = "none"; return true; }
To open editing form when clicks on an event, you can use the code below.
function WebScheduler1_OnEventSelected(controlId, selectedEvent) { var s = ISGetObject(controlId); var eventView = s.SelectedEvent; var originalObject = eventView.GetOriginalObject(); // if standard event if (eventView.RecurrenceType == "None") { s.EditEvent(eventView, "Event"); } else { var o = new WebSchedulerObjectContext(); o.Event = eventView; s.ShowConfirmationForm(o, "EditingForm"); } }
This should do the trick.
Regards,Handy
Hi,
Normally, when you left click on an empty event, it will show you call out. If you want to show editing form, you will need to click detail on CallOut. However, there is a properties to ignore CallOut and will directly show EditingForm. You need to set EmptyCellClickAction="ShowEditingForm". This should do what you are looking for.
thank you for reply,but I want to do that It will show nothing when i click left button of mouse.it will not show EditingForm or CallOut! How can i do this?
thanks!
Please allow me to summarize your requirement.
Able To Add Events By Clicking Right Button Of Mouse And Select “Add Event”Right-clicking mouse button to add event can be done by enabling context menu of WebScheduler.
<ISWebScheduler:WebScheduler ID="ws1" runat="server" Height="100%" Width="100%" EnableContextMenu="True" ... </ISWebScheduler:WebScheduler>
When context menu of WebScheduler is enabled, when users right-click on WebScheduler cell/event, the ContextMenu will appear. Simply choose “Add Event” from context menu in order to add new event.
Not Able To Add Event By Clicking Left Button Of MouseBy default, left-click on WebScheduler cell/event will show call out. Left-clicking on WebScheduler event will showing call out that contains fewer detail informations of the corresponding event. Left-clicking on WebScheduler cell will showing call out that allows users to add a new event or open Editing Form.
In order to ‘not allowing’ user to add event by clicking left button of mouse, we’ll need to hide/remove call out when users left-click on WebScheduler cell. We can utilize OnCallOutShow client-side event to hide/remove the call out if user click WebScheduler cell. The snippet code below shows how to do this.
<script type="text/javascript"> <!-- function ws1_OnCallOutShow(controlId, action) { var ws1 = ISGetObject(controlId); //if clicking on empty cell, hide/remove CallOut if (ws1.GetSelectedEvent() == null) { var callOutDivElement = document.getElementById("ws1_CSWF"); callOutDivElement.style.display = "none"; } return true; } --> </script>
If you have different scenario, please kindly let us know.
hi,
thank you for repling me .can you give me a sample example,thank you !
hi,Yudi!
thank you ! it help me!
Glad to hear that the sample helps.
If the sample does helps, could you please kindly "mark as answer" the corresponding post that helps? I'm sure it will helps other community member that has similar problem to find answer quickly and properly.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
Hi Yudi,
I can hide the div by this sample of code. When someone clicks on a empty cell I am able to open the edit form. When someone clicks on an event, I want to open the edit form,
can you help on this ?
How I achive the above functionality i.e. to hide the callout div completely.
Thanks
Srikant
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname