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

How to reduce RadDatePicker control size.

2 Answers 162 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 27 Jul 2010, 04:31 PM
Hello
A RadDatePicker control with simple definition(<telerik:RadDatePicker runat="server" ID="myPicker"/>)  consumes about ~15 Kb of page size.
On my page I have two grids, two asp combos, two text boxes and rendered page size is 70Kb,  I need to place four date pickers and they consume about ~60Kb, the page size is increasing up to ~130 Kb and that is very much....
Please provide any solutions/examples how to reduce the RadDatePicker control size.

Thanks

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 27 Jul 2010, 06:53 PM
Try setting SharedCalendarID property, so they can reuse the same RadCalendar for each RadDatePicker.

Here's the demo:
http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultcs.aspx

If the RadDatePicker controls are in the grid, check out this demo:
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/shareddatepicker/defaultcs.aspx?product=grid

Also, you should use the RadScriptManager and RadStyleSheetManager controls on your pages if you're not already doing so, as they will help reduce the javascript and css files used by the controls.

I hope that helps.
0
Roman
Top achievements
Rank 1
answered on 28 Jul 2010, 10:48 AM
Thank you
Tags
Calendar
Asked by
Roman
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Roman
Top achievements
Rank 1
Share this question
or