protected void callbackPanel_Callback(object sender, CallbackEventArgsBase e)
        {
            JavaScriptSerializer   serializer = new JavaScriptSerializer();
            CustomQueryWizardModel model      = serializer.Deserialize <CustomQueryWizardModel>(e.Parameter);

            model.CreateDataSources(reportDesigner);
            WizardModel = model;
        }
        protected void reportDesigner_Init(object sender, EventArgs e)
        {
            ASPxReportDesigner     designer = sender as ASPxReportDesigner;
            CustomQueryWizardModel model    = WizardModel;

            model.CreateDataSources(designer);

            XtraReport report = new XtraReport();

            if (Session["CallbackCache"] != null)
            {
                using (MemoryStream ms = new MemoryStream((byte[])Session["CallbackCache"])) {
                    report.LoadLayout(ms);
                }
                Session["CallbackCache"] = null;
            }
            designer.OpenReport(report);
        }