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:
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
This has got me totally stumped but this code fixed the problem:
{
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.