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

Style calendar report parameter

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roy Halvorsen
Top achievements
Rank 1
Roy Halvorsen asked on 19 May 2011, 10:29 AM
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.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 May 2011, 01:16 PM
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
Tags
General Discussions
Asked by
Roy Halvorsen
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or