Ticket Q517927
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

DashboardViewer - Web - Provide client-side methods for loading different dashboards

ASPxDashboardViewer - How to change dashboard at runtime from end user interface

created 12 years ago

Hi,

I have setup an ASPxGridview in webpage together with a ASPxDashboardviewer in my ASP.net page to allow user to change the dashboard on runtime.

I have created a System.Xml.XmlDocument and load the xml from physical file created by DashboardDesigner via the XmlDocument.Load method and assign the XmlDocument.Outerxml string to the e.Dashboardxml parameter during the DashboardLoading event (DashboardID has been set also), but it return the message "Dashboard has not been found" during debugging.

Can you provide an example of loading the dashboard from PHYSICAL XML FILE (instead of loading from database)? I have gone through your Financial demo dashboard and tried the same method but still doesn't solve the problem.

I have attached the website, project folder and dashboard layout folder for your reference.

Thanks.

Regards,
Cheang

Comments (2)
DevExpress Support Team 12 years ago

    I am afraid I cannot provide you with an immediate answer. Please bear with us, we are searching for a solution.

      Sure, thanks for your assistance.

      Answers approved by DevExpress Support

      created 12 years ago (modified 10 years ago)

      We have researched the issue and come to the conclusion that the current version of the ASPxDashboardViewer control does not provide a direct way to force dashboard reloading. However, we have found the following workaround:

      1. Place the ASPxDashboardViewer control inside the ASPxCallbackPanel one and use its ASPxClientCallbackPanel.PerformCallback method to force dashboard refresh.
      2. From the ASPxCallbackPanel.Callback event handler, set the ASPxDashboardViewer.DashboardId property and record a new property value to a session variable.
      3. From the Page_Load event handler, read data from the session variable and set the ASPxDashboardViewer.DashboardId property again.
        I have created a sample project that demonstrates this approach. You will find it in the attachment. I have also registered a separate request to provide an easier way to accomplish this task. We will consider this functionality implementation regarding future versions.
        DashboardViewer - Web - Provide client-side methods for loading different dashboards
        Show previous comments (10)
        DevExpress Support Team 9 years ago

          Hello,

          I've created a separate ticket on your behalf (T424944: How to reload a dashboard in a web solution). It has been placed in our processing queue and will be answered shortly.

            the link to https://www.devexpress.com/Support/Center/Question/Details/S172028 just points back here.
            I'd like to change the loaded dashboard based on a combo selection … still looking.

            Sergi (DevExpress) 8 years ago

              Hello,

              The sample project attached to this ticket demonstrates a possible workaround. We also suggest that you consider using the ASPxDashboard control that provides the capability to load different dashboards out of the box.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.