<
system.web>
<
trust level="Full" />
<
compilation debug="true" strict="false" />
<
httpHandlers>
<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
<
add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
</
httpHandlers>
<
httpModules>
<
add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
</
httpModules>
<
pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" >
<
controls>
<
add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
</
controls>
</
pages>
<
httpRuntime maxRequestLength="204800" enable="true" useFullyQualifiedRedirectUrl="true" executionTimeout="3600" />
</
system.web>
<
system.webServer>
<
security>
<
requestFiltering>
<!--
209715200 Bytes = 200 * 1024 * 124. The following setting is for 200 Mbytes -->
<
requestLimits maxAllowedContentLength="209715200"/>
</
requestFiltering>
</
security>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules runAllManagedModulesForAllRequests="true">
<
remove name="ScriptModule" />
<
remove name="RadUploadModule" />
<
remove name="RadCompression" />
<
add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/>
<
add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv4.0" />
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule" />
</
modules>
<
handlers>
<
remove name="ScriptHandlerFactory" />
<
remove name="ScriptHandlerFactoryAppServices" />
<
remove name="ScriptResource" />
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory" />
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory" />
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" />
<
add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
<
add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
<
add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
<
add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
<
add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
</
handlers>
</
system.webServer>
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
// Bring the sub-items up to the main level
RadMenuItem[] mArray = new RadMenuItem[this.Items[0].Items.Count];
this.Items[0].Items.CopyTo(mArray, 0); // Get items of next level down
this.Items[0].Items.Clear(); // clear these items
this.Items.AddRange(mArray); // paste them at the root level
}
... the RadMenu now looks just like the ASP menu, the problem I am left with is that when I am at the root site, the first node on the menu (the site root) is styled to be selected - that is what I want. However when I navigate to another page or site that now appears on the same level of the navigation it will become selected also (again what I want) but the first node (the site root) is still selected - I don't want this to be selected.
For example, if my sharepoint sites look like this:
Portal (Parent root site)
Which creates the navigation (with the code modification above) in SharePoint as:
When on the Portal root site (the welcome page for Portal), then Portal is styled to show it as selected.
eg (where [ ] denotes the menu item that is styled as selected):
[ Portal ] | Site 1 | Site 2
However when on Site 1, both Site 1 and Portal are styled to show they are both selected. I want only SIte 1 to be selected in this instance.
eg, this is how it currently is rendered:
[ Portal ] | [ Site 1 ] | Site 2
When I walk through the nodes (In the OnPreRender event) the Selected property is always false so it seems it is not here that the RadMenu is deciding what nodes are selected?
Where / how do I control what nodes in my RadMenu are selected when used in a SharePoint MOSS Publishing site?
public void populate_selectedAssistAgency(String casRepId)
{
Model.rep.repHeader RepHeader = new Model.rep.repHeader();
AssistAgencyAdapter adp = new AssistAgencyAdapter();
List<
Assist
> assist = new List<
Assist
>();
RepHeader.repId = RepId;
RepHeader = adp.getSelectedAssistAgency(RepHeader);
assist = RepHeader.RepAssistAgency;
RadListBox RadListBox_selectedAssistAgency = (RadListBox)RadPanelBar1.FindItemByText("RepIssues").Items[0].FindControl("RadListBox_selectedAssistAgency");
RadListBox_selectedAssistAgency.DataSource = assist;
RadListBox_selectedAssistAgency.DataTextField = "Assist_location_name";
RadListBox_selectedAssistAgency.DataValueField = "Assist_location_id";
RadListBox_selectedAssistAgency.DataBind();
}
<
td
style
=
"width:"
2%">t<
br
/>
<
telerik:RadListBox
runat
=
"server"
ID
=
"RadListBox_selectedAssistAgency"
AllowDelete
=
"false"
AllowReorder
=
"false"
AutoPostBack
=
"false"
SelectionMode
=
"Multiple"
Width
=
"120px"
Height
=
"200px"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"chkAssistDistance"
runat
=
"server"
/>
<
asp:CheckBox
ID
=
"chkAssistOnSite"
runat
=
"server"
/>
<
asp:Label
ID
=
"lblAssistAgencySelected"
runat
=
"server"
Text='<%# DataBinder.Eval(Container,"Text") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:RadListBox
>