Style calendar report parameter

2 posts, 0 answers
  1. Roy Halvorsen
    Roy Halvorsen avatar
    83 posts
    Member since:
    Oct 2008

    Posted 19 May 2011 Link to this post

    Is it possible to style the calendar when used as a report parameter? Can I set the calendar to use the Vista skin?

    In your demo http://demos.telerik.com/reporting/employee-sales-summary/demo.aspx the calendar control does not seem to use any skin styling.
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 25 May 2011 Link to this post

    Hello Roy Halvorsen,

    The Report Parameter area provides out of the box UI support for the parameters that covers 98% of the user cases and for that reason it is not customizable. In order to achieve your UI requirement, you should create custom UI for the parameters (for example using our Calendar Control) and hook it up to the parameters via the Reporting API as shown in the following code snippet: 

    protected void Page_Load(object sender, EventArgs e)
    {
        var report1 = new Report1();
        report1.ReportParameters["MultiValueParameter1"].Value = new object[] { 1, 2 };
           report1.ReportParameters["Parameter1"].Value = "myValue";
        ReportViewer1.Report = report1;
    }

    Regards,
    Peter
    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
  3. DevCraft banner
Back to Top