How to reduce RadDatePicker control size.

3 posts, 0 answers
  1. Roman
    Roman avatar
    3 posts
    Member since:
    Jun 2010

    Posted 27 Jul 2010 Link to this post

    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. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 27 Jul 2010 Link to this post

    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.
  3. Roman
    Roman avatar
    3 posts
    Member since:
    Jun 2010

    Posted 28 Jul 2010 Link to this post

    Thank you
Back to Top