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

Display/Hide parameters from Silverlight Viewer

2 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 09 Apr 2013, 06:16 AM
Hello,

I use Silverlight reports. I would like to change property Visible of report parameters "on fly" from Silverlight Report Viewer. For example in the method RenderBegin. Because on design time I do not know what parameters of report have I to display and what to hide.

In the MainPage.xaml.cs I am having:

private void reportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
{
    args.ParameterValues["StartDate"] = DateTime.Now.AddDays(x);

     // I would like someting like that
    args.ParameterValues["StartDate"].Visible = false;
}

How can I set property "Visible" of report parameters programmatically?

Thank you,
Andrew

2 Answers, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 11 Apr 2013, 03:46 PM
You have to make your own custom parameters area or modify the report definition in custom ReportResolver.
0
Thomas
Top achievements
Rank 1
answered on 27 Jun 2013, 07:07 AM
thanks.
Tags
General Discussions
Asked by
Andy
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Share this question
or