ComponentGO! :: Forum

user:
psw:
| lost password
home recent posts search register AspNetForum v.3.0.0.0

Home » WebControl - DailyCalendar » how to change our own custom color for web dailycalendar Messages in this topic - RSS

7/20/2010 1:32:49 PM
go
Posts 1090
It looks like you are using different library in your web project than project you have modified. Check references in web project, whether there is reference to the proper projects.
7/16/2010 7:48:04 AM
rajesh_rite
Posts 6
I have added enum to the DailyCalendarColorSchema (DailyCalendarColorsSchema.cs) and case option for DailyCalendar.cs page (DailyCalendarColorsSchema.MyCustom)
but getting this following error

Requested value 'MyCustom' was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Requested value 'MyCustom' was not found.

Source Error:

Line 71: // Initializes the colors schema of the calendar depends on radio selection
Line 72: //
Line 73: DailyCalendarColorsSchema schema = (DailyCalendarColorsSchema)
Line 74: Enum.Parse(typeof(DailyCalendarColorsSchema), "MyCustom");
Line 75: DailyCal.LoadColorsSchema(schema);


please give me suggestion

Thanks
B.Rajesh
7/16/2010 4:43:44 AM
go
Posts 1090
To add a new color schema you have to:
1. Add new enum to the DailyCalendarColorSchema
2. Implement this schema by adding new case to: DailyCalendar.LoadColorsSchema(...)
3. Call LoadColorsSchema in your page.
7/15/2010 11:42:50 PM
rajesh_rite
Posts 6
daily calendar have five color schemas (Standard, Blue, BlackAndWhite, Chocolate and None). I want to add my own custom color, I added the my color name in DailyCalendarColorsSchema.cs file. After that i tried to add switch statement in DailyCalendar.cs file. But my reference color not coming in that page. Please help me how to add my own custom color in daily calendar?

Thanks
B.Rajesh
pages: 1
|