v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

ReportViewer ReportToolbar master page

Issue Details

Log in to Track Changes or Edit
Q207260
Question
Markus Lopin
Yes
Processed
Answered
.NET
XtraReports Suite
8.3.2.0
Windows Vista
Microsoft Visual Studio 2008
6/4/2009 8:31:03 PM
-> Created by Markus Lopin 5/27/2009 1:46:40 PM

Is it possible to use a AspxReportViewer and a ReportToolbar within this szenario:

I have a masterpage with 3 contentplaceholders. On the contentpage the reporttoolbar has to be placed in content1, a combobox in content2 and a callbackpanel with the reportviewer inside into content3.

changing values in the combobox should load new reports. Therefore I call the callback function of the callbackpanel and do some stuff on the server (loading the report). If I place the toolbar into the callbackpanel I have no problems, but If I place it in an other content field, toolbar has no dependency to the reportviewer (no sitenumber, navigation, ... ; its clear, because only reportviewer is updated on server and replaced on client)

Unfortunately, callbackpanel has no callbackcomplete event (like aspxcallback) to use it as trigger to update (but I don't know how too) the toolbar.

My acutal project is too complex to provide you an example, I hope you can support me without one.

<- Reviewed by DevExpress Team 5/27/2009 1:53:26 PM
<- Processed (Answered) by DevExpress Team 5/28/2009 5:26:11 AM

Hi Markus,

Based on the information you provided, it's not clear why you cannot place both ReportViewer and ReportToolbar into the same ASPxCallbackPanel, to avoid this problem.
Other than that, I believe that it's not really necessary to use the ASPxCallbackPanel in this situation: on the client side, the ReportViewer content can be refreshed using the ASPxClientReportViewer.Refresh.
So, you can simply save a parameter value into a Hidden Field, and then refresh a report viewer. Within the Page_Load event handler, use the Hidden Field parameter value to create a new report instance and update the ReportViewer.Report property accordingly.
Let me know whether this makes sense.

Thanks,
Alex

-> Reactivated by Markus Lopin 6/2/2009 4:06:49 PM

Hi Alex!

Placing both into one panel is not possible because of the design of the masterpage, both controls have their own regions (ReportToolbar must be in a menu/toolbar region, ReportViewer is in a maincontent region)

I think the callbackpanel is not the problem, as I write before, I want to update the toolbar. Is there a toolbar.refresh ? The Viewer.refresh does not update the toolbar.

<- Processed (Answered) by DevExpress Team 6/3/2009 12:44:29 PM

Hi Markus,

Unfortunately, at present the ReportToolbar has no built-in mechanism to force initialization when a ReportViewer control is refreshed in a separate ASPxCallbackPanel.
I can only suggest that you remove the ReportToolbar from the ASPxCallbackPanel, and then bind the report within the Page_Load event handler, as I suggested previously.

Thanks,
Alex

-> Reactivated by Markus Lopin 6/4/2009 12:41:47 PM

Hi Alex!

Thanks for reply. The deathline of my project was to near to change major things. Therefore I decided to put the toolbar into the callbackpanel (its only a prototyp, but has to be presented tomorrow). I will leave that issue open, try your approach and give you respose.

Thanks
Markus

<- Processed (Answered) by DevExpress Team 6/4/2009 8:31:03 PM

Hi Markus,

Thanks for the update.
You're always welcome to update this thread if you notice any problem when using the approach I previously suggested.
I'll be glad to help you.

Thanks,
Alex

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips