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

Refresh ReportViewer with MVVM - Silverlight

8 Answers 364 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Equipe Info
Top achievements
Rank 1
Equipe Info asked on 03 Sep 2010, 02:27 PM
Hello,

I'm trying to refresh my reportviewer so it can reload parameters values.
How to do that using MVVM in a Silverlight project ? It seems that no refresh method exists on report viewer control...

Thanks.

8 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 03 Sep 2010, 04:41 PM
I guess RefreshReportCommand Property is what you're looking for.

Cheers!
0
Equipe Info
Top achievements
Rank 1
answered on 03 Sep 2010, 04:58 PM
Sorry but it seems to be a broken link...
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 03 Sep 2010, 05:13 PM
It works fine for me. If you're still having problems opening the link, simply locate that property in the Telerik Reporting API (http://www.telerik.com/help/reporting/overview.html).
0
Equipe Info
Top achievements
Rank 1
answered on 06 Sep 2010, 08:57 AM
Yes the link works this morning... don't know why...
I had a look to this property but i can't see how to link this ReportViewerModel to the ReportViewer control.
Do you have any example using this RefreshReportCommand ?

Thank you.
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 06 Sep 2010, 10:43 AM
Here is dummy code:

var model = (ReportViewerModel)this.ReportViewer1.DataContext;
model.RefreshReportCommand.Execute();

Cheers!
0
Equipe Info
Top achievements
Rank 1
answered on 06 Sep 2010, 10:55 AM
Thanks this should work fine but I'm using MVVM, so I have to refresh my report in the ViewModel, not in the code-behind of the View...
Any ideas on how to do that ?
0
Accepted
Chavdar
Telerik team
answered on 07 Sep 2010, 09:46 AM
Hi Equipe Info,

There is a possible solution described in your other support thread: RenderBegin method using Trigger.  Please, take a look at and let us know whether it fits in your case.

Best wishes,
Chavdar
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
0
Equipe Info
Top achievements
Rank 1
answered on 07 Sep 2010, 11:38 AM
Hi,

Yes I had a look to my previous thread and it gives a solution for those who don't use MVVM.
But in our case we need MVVM...
I will mark it as answered but it's not what we were looking for.

Thanks
Tags
General Discussions
Asked by
Equipe Info
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Equipe Info
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or