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
Gentlemen,
I have a very specific issue regarding my application that I am using the webscheduler for, specifically the timeline view mode.
Webscheduler seems to use the Resource color as the Event color "bar" when designating appointments, and displays the Category color in a tiny upper corner square in the Event color bar.
However, I must use the CATEGORY COLOR as the Event color bar, NOT the Resource color.
I know this may soud like a trivial issue but it is a highly critical for my application.
For example; Resource 1 has color Purple and Category 1 has color Red. If I create an Event with Resource 1 and Category 1, the Event color bar displays as Purple, (for Resource 1), and I desparately need the Event color bar to display as Red, (for Category 1).
Please tell me do I have any options or workarounds regarding this?
I’d like to inform you that this kind of scenario is not supported yet in the current build version of WebScheduler.
However, I have submitted this as feature request to the WebScheduler development team. The team will check the feasibility to implement this feature in the upcoming build of WebScheduler.
I modified the snippet code and test it in Month view with no problem. Could you please be more specific with the terms “not working”? Is there any exception happens or the specified color is not applied correctly?
I enclosed the modified version of FitnessCenterWebScheduler.aspx sample file of WebScheduler which shows that shows how it works. In this very simple sample, all the events has red background color.
Hope this helps.
It is the default of WebScheduler to have its event bar colored as the Resource color instead of Category color.
For your specific scenario, is it possible to switch the CategoryColorField property with the ResourceColorField?
Original:
<ISWebScheduler:WebScheduler ID="WebScheduler1" runat="server" ...> ... <DataBinding> <ResourcesBinding DescriptionField="Description" ResourceColorField="ResourceColor"/> ... <CategoryBinding CategoryColorField="CategoryColor" CategoryIDField="ID" CategoryNameField="CategoryName" DescriptionField="Description" /> </DataBinding> ... </ISWebScheduler:WebScheduler>
Modified to:
<ISWebScheduler:WebScheduler ID="WebScheduler1" runat="server" ...> ... <DataBinding> <ResourcesBinding DescriptionField="Description" ResourceColorField="CategoryColor"/> ... <CategoryBinding CategoryColorField="ResourceColor" CategoryIDField="ID" CategoryNameField="CategoryName" DescriptionField="Description" /> </DataBinding> ... </ISWebScheduler:WebScheduler>
Please let us know whether this helps or not.
Hi Yudi,
Thank you very much for your prompt reply.
Unfortunately your suggestion did not work. When switching the "ResourceColor" to the "Category Color", my color bars in timeline view simply appear as a "ghost white" with no color at all. Also, my resource list on the far left below the calenders all turn to a default black color.
I have attached a screenshot image to illustrate the effects.
Please advise......
Thanks!
The solution for your specific scenario is not as easy as switching the ResourceColor field with the CategoryColor field.
I will have this forwarded to WebScheduler development team. I will get back to you as soon as I have any answer for your scenario.
Thanks for your reply. Can you tell me how your internal processes work in regards to issues like this that have been "forwarded to the webscheduler development team"? Is this a long process or what happens from here?
It seems very strange to me that the resource color would be used rather than the category color since the resource colors are displayed in the bottom left of the timeline view, as well as having the resource name in the header of the horizontal cell.
I am desparate and hopeful for a resolution on this.
Hello Yudi,my Company is using Web sceduler and actually we need a solution in the matter pictured above. We have to be able to switch bar colours in category colours, or we can't use InterSoft Web Sceduler at all.Do You have any progress in this? Is there planned any update?with kind regards and hope for any solution
There is a workaround to have WebScheduler’s events to be colored based on their Category’s color. This approach utilizes OnEventBound client-side event of WebScheduler. (OnEventBound will gets or sets the event handler when Event is bound.
The snippet code below shows how to set event content element to be Blue if their CategoryID is equal to 1; set event content element to be Red if their CategoryID is equal to 2; etc.
function OnEventBound(controlId, evt) { var WebScheduler1 = ISGetObject(controlId); if (WebScheduler1.ViewSettings.SelectedViewMode == "Timeline") { var categoryID = evt.GetOriginalObject().CategoryID; var div = evt.GetContentElement(); switch (categoryID) { case "1": div.style.backgroundColor = "Blue"; break; case "2": div.style.backgroundColor = "Red"; break; default: break; } } }
However, there are things that we have to consider if we want to implement this code.
Please let us hear your feedback regarding this.
Thanks Yudi, the Solution is working perfectly. Thanks for your help!
But i have another Question. If i do the same for MonthView
if (WebScheduler1.ViewSettings.SelectedViewMode == "Month") not working!
it is not working. Is there also a Workaround for MonthView?
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