or
| ' Name: EnableToolbar |
| ' Purpose: Enables the toolbar. |
| ' Parameters: radEditor - The rad editor. |
| ' strToolbarName - The name of the toolbar to enable. |
| ' Returns: Nothing. |
| Public Shared Sub EnableToolbar(ByRef radEditor As RadEditor, ByVal strToolbarName As String) |
| Dim radEditorToolGroupCollection As EditorToolGroupCollection |
| Dim radEditorToolGroup As EditorToolGroup = Nothing |
| Dim l_bToolbarFound As Boolean = False |
| ' Read the collection of tools. |
| radEditorradEditorToolGroupCollection = radEditor.Tools |
| ' Iterate through the collection. |
| For Each radEditorToolGroup In radEditorToolGroupCollection |
| If (radEditorToolGroup.Tag = strToolbarName) Then |
| ' I have found the toolbar, but how do I enable it? |
| End If |
| Next |
| End Sub |
| <telerik:RadWindowManager |
| id="RadWindowManager1" |
| VisibleOnPageLoad="true" |
| DestroyOnClose="true" |
| ShowContentDuringLoad="false" |
| Skin="Vista" |
| InitialBehaviors="Close,Maximize,Minimize,Move,Resize" |
| MinimizeZoneId="HorizontalMinimize" |
| OnClientShow = "OnClientShowRadWindow" |
| OnClientPageLoad = "OnClientPageLoadRadWindow" |
| OnClientDragStart = "OnClientDragStartRadWindow" |
| OnClientDragEnd = "OnClientDragEndRadWindow" |
| OnClientClose = "OnClientCloseRadWindow" |
| runat="server"> |
| <Windows> |
| <telerik:RadWindow ID="ModalWindow" runat="server" Behavior="None" |
| DestroyOnClose="true" Modal="true" |
| VisibleOnPageLoad="false" /> |
| </Windows> |
| </telerik:RadWindowManager> |
<script type="text/javascript">
function mngRequestStarted(ajaxManager, eventArgs)
{
if(eventArgs.EventTarget == "lnkExcel")
{
eventArgs.EnableAjax = false;
}
}
</script>
This does not have any affect when used within the Master Page. I can actually see a slight movement of the grid so I know Ajax is still working here. After a bit of debugging, I found the if statement never returns true because the control is nested in the Master Page and gets a funky id (thanks ASP.NET).
How do I change the "lnkExcel" part to return the id of the control even when it's on a Master Page?
Thanks.
| Protected Sub vendorGridView_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles vendorGridView.ItemDataBound |
| If Session("VendorClientID") = e.Item.DataItem("ClientID") Then |
| e.Item.Selected = True |
| End If |
| End Sub |
