Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
UltraWebListbar Shows Duplicates on Postback
posted

I use the UltraWebListbar as a menu that sits in the left panel of our screen. Usually there are no problems.

However, we created a page with a ReportViewer control (a control which renders reports from the MS Reporting Services). This works fine. Except, if there are parameters in the report, every group/item in the UltraWebListbar is duplicated. These are the groups that normally show up:

Users

Groups

System

Reports: ATMS

These are the groups that are displayed once a report with parameters is rendered:

Users

Groups

System

Reports: ATMS

Users

Groups

System

Once I navigate to a different page, the problem dissapears. I thought is might be related to this problem, but even when I disable partial rendering at the ScriptManager level, the problem still occurs

  • 385
    posted

    This has got me totally stumped but this code fixed the problem:

    protected void Page_Load(object sender, EventArgs e)

    {

    MenuListbar.Groups.Clear();

    [...]

    }

    There were actually groups in the control at page load even though no groups were defined in the ASCX page. I guess somehow the ViewState was picking up the items from before the postback. I have no idea how that could happen but I guess it has something to do with the ReportViewer doing some kind of makeshift partial page render.