Hi
I am implementing a reporting dashboard ASP.NET page. To do this I have an ASPX page with multiple RadDockZones and RadDocks, each containing a reference to a user control (ASCX page) which contains the RadHtmlChart.
Several of these charts have drill-downs which use RadAjaxManager and a client side function called from the chart. See...
https://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultvb.aspx
Individually, the charts work fine but when incorporated within the parent dashboard page I get a message saying you can't have more than one RadAjaxManager on the same page.
Google searches told me to use RadAjaxManagerProxy instead, with the RadAjaxManager on the parent page. However, I have no idea how to do this. None of the solutions I found seem to be suitable for my problem. One said that RadAjaxManagerProxy does not have client-side object or functions. I am using the ajaxRequest client-side function, so perhaps this is my problem.
Is what I am trying to do even possible? If so, how?
Thanks
Nick
Hi
I hope you can help. We are implementing a .NET reporting dashboard whereby our page will consist of multiple RadHtmlChart controls. Each control sits in its own web part called from the parent page and housed in RadDocks.
For performance reasons we'd like the charts to render asynchronously. We have tried to achieve this using a web service in the manner shown below.
However, the charts do not render at all. Any other control we place in our web parts work fine (dropdown, radgrid etc.). Just not RadHtmlChart. Have you any ideas why this would be? Should we be using another method of doing this?
function DockInitialize(dock, args) {
logIt("INVOKE WidgetsWebService:" + dock.get_id());
var dockID = dock.get_id();
var CompanyID = $get(dockID).attributes["CompanyID"].value;
Revolution.WidgetsWebService.GetData(CompanyID, function (result) {
$get(dockID + "_C").innerHTML = result;
logIt("END INVOKE WidgetsWebService:" + dock.get_id());
});
}
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="~/Services/WidgetsWebService.asmx" />
</Services>
</asp:ScriptManager>
------------------------------------------------------------------------------------------------------------------------------
<System.Web.Script.Services.ScriptService()>
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class WidgetsWebService
Inherits System.Web.Services.WebService
<WebMethod()>
Public Function GetData(ByVal elementID As String) As String
Thread.Sleep(2000)
If elementID = String.Empty Then
Throw New Exception("No Value argument is provided to the webservice!")
End If
Return ViewManager.RenderView("~/Dev/Consultants/Dashboard/Widgets/Other/TestControl.ascx")
End Function
End Class
------------------------------------------------------------------------------------------------------------------------------
Public Shared Function RenderView(ByVal path As String) As String
Thread.Sleep(200)
Dim pageHolder As Test = New Test()
Dim tempForm As HtmlForm = New HtmlForm()
tempForm.ID = "TempForm"
pageHolder.Controls.Add(tempForm)
Dim viewControl As UserControl = CType(pageHolder.LoadControl(path), UserControl)
viewControl.ID = Guid.NewGuid().ToString()
Dim scriptManager As New ScriptManager()
tempForm.Controls.Add(scriptManager)
tempForm.Controls.Add(viewControl)
Dim output As StringWriter = New StringWriter()
HttpContext.Current.Server.Execute(pageHolder, output, False)
Dim result As String = output.ToString()
Return result
End Function
------------------------------------------------------------------------------------------------------------------------------
and this is our TestControl.ascx web part
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="TestControl.ascx.vb" Inherits="Revolution.TestControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div id="content">
<telerik:RadHtmlChart runat="server" ID="ColumnChart">
<PlotArea>
<Series>
<telerik:ColumnSeries Name="Wooden Table">
<SeriesItems>
<telerik:CategorySeriesItem Y="25000"></telerik:CategorySeriesItem>
<telerik:CategorySeriesItem Y="12000"></telerik:CategorySeriesItem>
</SeriesItems>
</telerik:ColumnSeries>
</Series>
<XAxis>
<Items>
<telerik:AxisItem LabelText="1"></telerik:AxisItem>
</Items>
<TitleAppearance Position="Center" RotationAngle="0" Text="Quarters">
</TitleAppearance>
</XAxis>
<YAxis>
<LabelsAppearance DataFormatString="{0} sales" RotationAngle="0" Skip="0" Step="1"></LabelsAppearance>
<TitleAppearance Position="Center" RotationAngle="0" Text="Sales">
</TitleAppearance>
</YAxis>
</PlotArea>
</telerik:RadHtmlChart>
</div>
<form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" DataSourceID="gridRequest" Edit = "true"> <MasterTableView EditMode = "InPlace" > <Columns> <telerik:GridBoundColumn DataField="Program" HeaderText="Program" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Organization" HeaderText="Organization"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Campaign" HeaderText="Campaign" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MinEmployeeCnt" HeaderText="MinEmployeeCnt" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MaxEmployeeCnt" HeaderText="MaxEmployeeCnt" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MinSalesVolume" HeaderText="MinSalesVolume" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MaxSalesVolume" HeaderText="MaxSalesVolume" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LandLineOnly" HeaderText="LandLineOnly" ></telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> <asp:ObjectDataSource ID="gridRequest" runat="server" SelectMethod="SelectBusiness" TypeName="G2WebBL.DataMappers.LeadsRequest.LeadsRequestDataAccess"> <SelectParameters><asp:SessionParameter Name="id" DbType="String" DefaultValue="%" SessionField="ID" /></SelectParameters> </asp:ObjectDataSource></form>
How is the best way to get values of controls to EditFormSettings ?
I have this code but I don't know if there's other best way:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "PerformInsert") { GridEditFormInsertItem editform = (GridEditFormInsertItem)((Telerik.Web.UI.GridEditFormInsertItem)(e.Item)); RadTextBox txtbx = (RadTextBox)editform.FindControl("txtName"); string strtxt = txtbx.Text; } }<EditFormSettings EditFormType="Template"> <FormTemplate> <telerik:RadLabel runat="server" Text="Name:" Font-Bold="True"></telerik:RadLabel> <br /> <telerik:RadTextBox ID="txtName" runat="server" InputType="Text" MaxLength="70" Width="100%" AutoCompleteType="None" autocomplete="off"></telerik:RadTextBox> <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtName" runat="server" CssClass="rfv" /> <telerik:RadButton ID="btnSave" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Save" : "Update" %>'CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> </telerik:RadButton> </FormTemplate></EditFormSettings>

What I am trying to do is have a RadGrid that will display 5 static questions followed by the detail? The detail records will be dynamic and come from the database.
Example
<Header Row> File Name and Created On<Static Question>1. Do you have any special agreements?<Detail Record(s)> This will list all files associated with question 1<Static Question>2. Attach financial statements for last 3 months<Detail Record(s)>List all files associated with question 2

I I tried to block the addition of the grid. But when I clicked to add a row by trying to block the grid It can be added
By which I click on the symbol plus it cannot But when i click on the message it will add a row
I don want it's Add New Row in block radgrid
now I block it's but it Add new row
Attach files : Pic1 and Pic2

Hi,
I have a large ASPX app using Telerik controls and would like to add logic to display a loading panel while a file upload or download operation is being performed.
The loading panel would need to be controlled from the server side, both for showing and hiding. Can this be done?
