Click here to Skip to main content
15,312,347 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we are exposing Devexpress ReportDesigner to user for creating structure
but issue is that if user take time to design report structure session get expired....

so i am looking for any call back event to be fired on each activity to keep session alive

C#
@Html.DevExpress().ReportDesigner(settings =>
{
    settings.Name = "reportDesigner";
    object newReportUrl = new { Controller = "Canvas", Action = "AddNewCanvas", name = Model.ReportName };
    object existReportUrl = new { Controller = "Canvas", Action = "UpdateCanvas", id = Model.RHID };
    settings.SaveCallbackRouteValues = Convert.ToInt64(Model.RHID) != 0 ? existReportUrl : newReportUrl;
    settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.ControlStyle.CssClass = "fullscreen";
    if (Model.dt != null)
    {
        settings.DataSources.Add("Canvas", Model.dt);
    }
//setting.callback something for each activity 
    settings.CustomJSProperties = (_, e) => e.Properties["cpIndexUrl"] = Url.Action("Index", "Home");
}).Bind(Model.report).GetHtml()

Report Designer[^]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900