This is a migrated thread and some comments may be shown as answers.

Styling appointment entries

3 Answers 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gregor Suttie
Top achievements
Rank 1
Gregor Suttie asked on 28 Oct 2009, 02:06 PM
Hi There

I see from the demo project that the scheduler can have the entries style using the following code:-

 
<ResourceStyles> 
                <telerik:ResourceStyleMapping Type="User" Text="Alex" ApplyCssClass="rsCategoryBlue" /> 
                <telerik:ResourceStyleMapping Type="User" Text="Bob" ApplyCssClass="rsCategoryOrange" /> 
                <telerik:ResourceStyleMapping Type="User" Text="Charlie" ApplyCssClass="rsCategoryGreen" /> 
            </ResourceStyles> 
 

 


I need to do the same thing so I can style the appointment entries in to be differet colours, how can I do this for the scheduler?

I have a blank solution with a blank page and just the scheduler on it - so how does the code above reference a stylesheet If I want to use my own styles and stylesheets to accomplish this?

Thanks
Gregor

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 29 Oct 2009, 02:49 PM
As you can see in the code the reference to the CSS class is in ApplyCssClass. As long as you have the .css file with the particular name in your project it will reference it and apply it to any of the appointments with the Type/Text you have defined. You are basically over-writing the CSS styles of the Appointment object so you have to work with the CSS already defined. For more information you can read through the appearance article found in the documentation.
0
robert
Top achievements
Rank 1
answered on 16 Mar 2010, 08:23 PM
Hi to everyone.

i'm trying to use style with the appointments, as i can see at live examples, and something that i want to try is the WebMail with Q3 2009 but, i want to customize with this... (color..), i don't know if i'm at the right path.. i need to add the Calendar combobox to the AdvancedFormEdit, and then what? :(

maybe the question is how can i link the Id of the check box used in the scheduler with DataBase of SQL?

if there's anything to help me out with this i'll appreciate a lot ! 

p.d. i'm using SQL Server instead a mdf file or Xml
0
T. Tsonev
Telerik team
answered on 19 Mar 2010, 12:09 PM
Hello Robert,

The calendars used in this example are a type of "resource". They allow you to associate each appointment to a list of predefined entities (Rooms, Users). You can then control the visual appearance of appointments according to this. You should see this help topic for more info:

http://www.telerik.com/help/aspnet-ajax/schedule_serversideworkingwithresources.html

And this demo as well:

http://demos.telerik.com/aspnet-ajax/scheduler/examples/resources/defaultcs.aspx

I hope this helps.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Gregor Suttie
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
robert
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or