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
Hello!
Is it possible to change colour of an event by double clicking on that event. Or when I double click an event, make some validation and after change the colour of the event? The colour will be other than the resource colour.
Thank you.
Hello,Thank you for the question regarding WebScheduler.I tried to make a workaround that might be you could try.First, I add “OnEventDoubleClicked” client side event on the WebScheduler.
<ISWebScheduler:WebScheduler ID="WebScheduler1" runat="server" Height="100%" Width="100%"> <ClientSideEvents OnEventDoubleClicked="WebScheduler1_OnEventDoubleClicked"/> </ISWebScheduler:WebScheduler>
Then in that event I add a couple line of code to modify the selected event.
function WebScheduler1_OnEventDoubleClicked(controlId, clickedEvent) { var WebScheduler1 = ISGetObject(controlId); clickedEvent.Elements[0].childNodes[0].style.backgroundColor = "red"; clickedEvent.Elements[0].childNodes[0].style.border = "2px solid orange"; return true; }
Hope this helps.Thank you.Regards,Hans K.
function WebScheduler1_OnEventBound(controlId, evt) { if (evt.RecurrenceType == "Default") { if (evt.MasterObject.TotalAttendees == 150) { //Header evt.Element.childNodes[0].childNodes[0].childNodes[0].style.backgroundColor = "orange"; evt.Element.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.border = "1px solid orange"; //Content evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].style.backgroundColor = "red" evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].border = "1px solid orange"; } } else if (evt.RecurrenceType == "Exception") { if (evt.OriginalRecurringObject.TotalAttendees == 100) { //Header evt.Element.childNodes[0].childNodes[0].childNodes[0].style.backgroundColor = "gray"; evt.Element.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.border = "1px solid gray"; //Content evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].style.backgroundColor = "black" evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].border = "1px solid gray"; } } else { if (evt.OriginalObject.TotalAttendees == 0) { //Header evt.Element.childNodes[0].childNodes[0].childNodes[0].style.backgroundColor = "blue"; evt.Element.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.border = "1px solid blue"; //Content evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].style.backgroundColor = "purple" evt.Element.childNodes[0].childNodes[0].childNodes[1].childNodes[0].border = "1px solid blue"; } } }
Hope this helps.Regards,Hans K.
Hello,
I haven't tested your solution yet. Do you know where to find EOEvent and EORecurringEvent classes?
Dora
You could find the EOEvent & EORecurringEvent class, in EventOrganizer.cs page, under App_Code folder.
Regards,
Hans K.
I can not find the App_Code folder. I entered on the live site and there i could find only the aspx and the c# code.
this.Insert(ResourceName, ResourceDescription, ResourceColor)
this.Insert(ResourceName, ResourceDescription)
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