<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<AjaxSettings><UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadSplitter2" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
function OnClientNodeClicking(sender, args) {
var currentLoadingPanel = $find("<%=RadAjaxLoadingPanel1.ClientID %>");
currentLoadingPanel.visibility = true;
var url = args.get_node().get_value(); // get value
var rd = $find("<%=Main.ClientID%>");
rd.set_contentUrl(url); // Set the url
args.set_cancel(true); // Cancell the event
currentLoadingPanel.visibility = false;
}
<asp:Button ID="uxPrint" runat="server" ToolTip="Save/Print form" onclick="uxPrint_Click" UseSubmitBehavior="false"/>
There is no javascript on this button (other than what goes on with telerik's AJAX system);
The codebehind Starts with:
protected void uxPrint_Click(object sender, EventArgs e) {
RadGrid rgMain = Page.FindControl("rgMain") as RadGrid;
rgMain.ExportSettings.OpenInNewWindow = true;
rgMain.ExportSettings.Pdf.Title = uxEmployeeNameField.Text + " - " + uxCategoryField.Text; //...
rgMain.ExportSettings.Pdf.PageTitle = rgMain.ExportSettings.Pdf.Title;
rgMain.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("10mm");
. . .
//and finishes with:
rgMain.MasterTableView.ExportToPdf();
}ChartSeries serieObjective = new ChartSeries("Objective") { Type = ChartSeriesType.Line };
serieObjective.Items.Add(new ChartSeriesItem(1, 20));
int periods = NumberOfPeriods(firstPeriod, lastPeriod); //Returns the number of periods (in this example 12)
serieObjective.Items.Add(new ChartSeriesItem(periods, 120));
chart.Series.Add(serieObjective);

<telerik:GridTemplateColumn HeaderText="RESCHEDULE"> <ItemTemplate> <asp:ImageButton ID="imgSched" runat="server" CommandName="reSched" CommandArgument='<% #Bind("intEOLId") %>' ImageUrl="~/Images/Bones.png" OnClientClick="javascript:window.open('../Admin/Email.aspx?EolId);" Height="30px" Width="30px" /> </ItemTemplate> </telerik:GridTemplateColumn>If (e.CommandName = "reSched") Then Dim EolId As Integer = Convert.ToInt32(e.CommandArgument) Dim item As GridDataItem = TryCast(e.Item, GridDataItem) Dim linkSched As ImageButton = DirectCast(item.FindControl("imgSched"), ImageButton) Dim Vreturn As String = "" linkSched.Attributes.Add("onclick", "javascript:window.open('../Admin/Email.aspx?EolId=" & EolId & "'); return false;") 'sql = "Execute usp_EOLResched " & EolId 'Vreturn = getData(sql).Rows(0)(0) 'If Vreturn = "1" Then ' Fillgrid = True ' myRadGrid.Rebind() 'End If End If