The two files you need to adjust to disable the Manager View are the "WorkItemList.aspx" and "WorkItemList.aspx.cs" files.
Seems the frontend page needs the CodeFile="WorkItemList.aspx.cs" attribute set in the page header so that it actually fires the events in the codebehind page.
The codebehind page needs an additional flag set "WIL.DisplayManagerView = false;".
Below is sample code.
<%@ Page Language="C#" MasterPageFile="~/BPMUITemplates/Default/Repository/Site/MasterPage.master" AutoEventWireup="true" CodeFile="WorkItemList.aspx.cs" Inherits="Skelta.WorkItemList" Title="Untitled Page" %>
<%--<%@ Register Assembly="Skelta.HWS.WorkListChannel.Web.WorkItemListControl, Version=3.0.0.0, Culture=neutral, PublicKeyToken=6c165f384ce7017f"
Namespace="Skelta.HWS.WorkListChannel.Web.WorkItemListControl" TagPrefix="cc1" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="Cont" Runat="Server">
<%--<cc1:WorkItemControl ID="WIL" ApplicationName="Repo1" UserIdString="1" runat="server"></cc1:WorkItemControl>--%>
<table id="table1" border="0" width="100%" style="height:100%" >
<tr>
<td height="100%" width="100%" vAlign="top" >
<aspanel ID="PanelWIL" runat="server" Height="100%"></aspanel>
</td>
</tr>
</table>
<script>
check();
function check()
{
var chk=GetBrowserversion();
if(chk==3 || chk==2)
{
document.getElementById("table1").style.height=document.body.clientHeight-58;
}
else
{
document.getElementById("table1").style.height=document.body.clientHeight-61;
}
}
GetBrowserversion()
function GetBrowserversion()
{
var app=navigator.userAgent;
if(app.indexOf("MSIE 7")>-1)
{
return 3;
}
else if(app.indexOf("Firefox/1.5")>-1)
{
return 2;
}
else
{
return 1;
}
}
</script>
</asp:Content>
WorkItemList.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace Skelta
{
public partial class WorkItemList : System.Web.UI.Page
{
protected string _Repository;
protected Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl WIL;
protected void Page_Load(object sender, EventArgs e)
{
}
protected override void OnInit(EventArgs e)
{
Skelta.Entity.UserContext uContext = new Skelta.Entity.UserContext();
WIL = new Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl();
WIL.ApplicationName = uContext.Repository.ApplicationName;
WIL.UserIdString = uContext.LoggedInUserId;
WIL.ID = "WorkItemListControl";
WIL.DisplayManagerView = false;
WIL.ReadingPaneInPopupWindow = true;
PanelWIL.Controls.Add(WIL);
}
}
}