Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
326 views

hello...

 

the demo in https://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/box-plot-chart/defaultcs.aspx

help me a lot in making the box plot chart, but how do I remove the  $ sign from the tooltip?

 

 

Vessy
Telerik team
 answered on 22 Oct 2018
2 answers
284 views

I'm having trouble getting the RadCalendar to update the RadScheduler and vice versa.   I started with the standard demo template and changed the datasource of the scheduler to bind it to a stored procedure call.   The scheduler and calendar controls no longer update each other.   I have not added any Server side events besides the DataBound Event for RadScheduler in which i change appointment colors and attributes.  (Commenting out this code does not fix the issue).  In the asp page, I've only added some client side button click events.   Nothing changed with the navigation.   The rebind method does not seem to rebind the control. 

Any idea why this might be happening? 

 

n/a
Top achievements
Rank 1
 answered on 22 Oct 2018
4 answers
219 views

I'm able to export a div to PDF using the RadClientExportManager, but inside this div is a RadGrid that has paging.

How do I disable paging for this grid when exporting? I would also like to know how to remove elements before exporting.

Marin Bratanov
Telerik team
 answered on 22 Oct 2018
5 answers
107 views

I have a RadGrid that becomes "visible" after a user clicks a button.  List of objects are assigned to the grid.  However the grid is showing nothing (I see only the grid border), not even the headers or anything and the DataBinding event is NOT triggered.  I've verified all the DataField names match up correctly to the List of Object properities … all good.

As an experiment, I moved the exact same code into my Page_Load event and it populates the grid as expected??

Do RadGrids ONLY work from Page_Load?

Baffled,

Any suggestions?

 

 

Marin Bratanov
Telerik team
 answered on 22 Oct 2018
6 answers
296 views
I am programmatically binding a RadSpreadsheet to a data table based on an SQL table. Is there a way to when the save button is clicked to override the default behavior and save the results of the modified data to a data table so that I can commit it back to my SQL database? Any help is appreciated
Peter Milchev
Telerik team
 answered on 22 Oct 2018
9 answers
348 views

Hello.

I am trying to reproduce the demo application available at
http://demos.telerik.com/aspnet-ajax/scheduler/examples/wcf/defaultcs.aspx.

Using Visual Studio 2008, I have created a web application with components RadScriptManager and RadScheduler:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication6._Default" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <telerik:RadScheduler ID="RadScheduler1" runat="server"> <WebServiceSettings Path="~/App_Code/SchedulerWcfService.svc" ResourcePopulationMode="ServerSide" />
    </telerik:RadScheduler>
    </form>
</body>
</html>

An AJAX-enabled WCF service was added to the solution:
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Web;
using Telerik.Web.UI;
  
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
  
public class SchedulerWcfService
{
    private WebServiceAppointmentController _controller;
  
    private WebServiceAppointmentController Controller
    {
        get
        {
            if (_controller == null)
            {
                _controller =
                    new WebServiceAppointmentController(
                        new XmlSchedulerProvider(HttpContext.Current.Server.MapPath("~/App_Data/Appointments_Outlook.xml"),
                            false));
            }
            return _controller;
        }
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo)
    {
        return Controller.GetAppointments(schedulerInfo);
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> InsertAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
    {
        return Controller.InsertAppointment(schedulerInfo, appointmentData);
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
    {
        return Controller.UpdateAppointment(schedulerInfo, appointmentData);
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> CreateRecurrenceException(SchedulerInfo schedulerInfo,
     AppointmentData recurrenceExceptionData)
    {
        return Controller.CreateRecurrenceException(schedulerInfo, recurrenceExceptionData);
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> RemoveRecurrenceExceptions(SchedulerInfo schedulerInfo,
     AppointmentData masterAppointmentData)
    {
        return Controller.RemoveRecurrenceExceptions(schedulerInfo, masterAppointmentData);
    }
  
    [OperationContract]
    public IEnumerable<AppointmentData> DeleteAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData,
     bool deleteSeries)
    {
        return Controller.DeleteAppointment(schedulerInfo, appointmentData, deleteSeries);
    }
  
    [OperationContract]
    public IEnumerable<ResourceData> GetResources(SchedulerInfo schedulerInfo)
    {
        return Controller.GetResources(schedulerInfo);
    }
  
}

Since data is retrieved from file Appointments_Outlook.xml, the file was copied from C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q3 2010\Live Demos\App_Data to directory App_Data of the web application.

The following section was automatically added to web.config:

<system.serviceModel>
    <behaviors>
        <endpointBehaviors>
            <behavior name="WebApplication6.App_Code.SchedulerWcfServiceAspNetAjaxBehavior">
                <enableWebScript />
            </behavior>
        </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    <services>
        <service name="WebApplication6.App_Code.SchedulerWcfService">
            <endpoint address="" behaviorConfiguration="WebApplication6.App_Code.SchedulerWcfServiceAspNetAjaxBehavior"
                binding="webHttpBinding" contract="WebApplication6.App_Code.SchedulerWcfService" />
        </service>
    </services>
</system.serviceModel>

When I launch the application, the following error message is displayed:
Server Error in '/' Application.
--------------------------------------------------------------------------------
  
The remote server returned an error: (403) Forbidden. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
Stack Trace: 
  
[WebException: The remote server returned an error: (403) Forbidden.]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +302
   System.Net.WebClient.UploadString(Uri address, String method, String data) +170
   System.Net.WebClient.UploadString(String address, String method, String data) +35
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +471
  
[Exception: An error occurred while requesting resources from the web service. Server responded with: <html>
    <head>
        <title>Forbidden</title>
        <style>
            body {font-family:"Verdana";font-weight:normal;font-size: 8pt;color:black;} 
            p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
            b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
            h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
            h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
            pre {font-family:"Lucida Console";font-size: 8pt}
            .marker {font-weight: bold; color: black;text-decoration: none;}
            .version {color: gray;}
            .error {margin-bottom: 10px;}
            .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>
    <body bgcolor="white">
  
            <span><h1>Server Error in '/' Application.<hr width=100% size=1 color=silver></h1>
  
            <h2> <i>HTTP Error 403 - Forbidden.</i> </h2></span>
  
            <hr width=100% size=1 color=silver>
  
            <b>Version Information:</b> ASP.NET Development Server 9.0.0.0
  
            </font>
  
    </body>
</html>
]
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +633
   Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +95
   Telerik.Web.UI.RadScheduler.BindResources() +50
   Telerik.Web.UI.RadScheduler.PerformSelect() +88
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +51
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3618 


I would appreciate whether you could provide some assistance to solve the problem.
Thank you in advance.

Paulo

Brendan
Top achievements
Rank 1
 answered on 22 Oct 2018
9 answers
1.0K+ views
I have the user sending my page a querystring called price. It can be set to
either Yes, No, or Readonly.

How can I use this query string to conditionally show a price column
if the query string is yes, and to make it read only in the edit form if it
is readonly?

Thanks,
Laura
Tsvetomir
Telerik team
 answered on 19 Oct 2018
3 answers
290 views

I am having to expand repeating events so I would like to remove the End: Never option and change the default.  The problem I have run into is that the code appears to be injected when the repeat option changes.

 

TIA

Peter Milchev
Telerik team
 answered on 19 Oct 2018
1 answer
110 views

Hi,

for this demo:

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

How can I make the buttons ("add new record" + "save changes" + "cancel changes") move from left side to right side of the table, and the start position of the focus (when the table have many cells so it get scrolled to one side at page load) to be on right side of the table instead of left side?

 

I tried several things that I saw in forums, but it didn't help:

1. adding:  Dir="RTL"  to MasterTableView properties, and to all the <div> i have on the page (also added a div like this right before  the "telerik:RadAjaxLoadingPanel" and before the "telerik:RadListBox").

2. adding to the css file:

.RadMenu_Context_rtl {
    direction: rtl !important;
}

3. adding rtl to the body tag:

<body dir="rtl">

4. I also didnt use any other css or other stuff, only the demo itself, so I can isolate the problem.

Tsvetomir
Telerik team
 answered on 18 Oct 2018
1 answer
212 views

I'm experiencing an issue that was that is similar to the issue found at https://www.telerik.com/forums/client-side-service-binding-11-empty-rows. I have a radgrid that I'm binding to JSON results on the client-side. Regardless of the number of records, the record count always reads 11 items in 2 pages.

I've followed all of the recommendations in the previous issue, but I don't think there was ever any actual resolution to that problem.

Here's what I have, and a screenshot to show the symptoms:

Markup:

<div class="tab-pane row in active" id="selected">
  <div class="col-md-12">
    <telerik:RadAjaxLoadingPanel runat="server" Skin="Default" ID="loadPanel" />
    <sg:IPGrid runat="server" ID="rgSelected">
      <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false"  AllowPaging="True">
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" Position="Bottom" />
        <Columns>
          <telerik:GridTemplateColumn HeaderStyle-Width="50px">
            <ItemTemplate>
              <asp:Button runat="server" ID="Button1" Text="Add" CssClass="btn btn-sm" />
            </ItemTemplate>
          </telerik:GridTemplateColumn>
          <telerik:GridBoundColumn DataField="Title" HeaderText="Title" HeaderStyle-Width="450px" />
          <telerik:GridBoundColumn DataField="AssignedTo" HeaderText="Assigned To" />
          <telerik:GridBoundColumn DataField="HotfixOwner" HeaderText ="Hotfix Owner" />
          <telerik:GridBoundColumn DataField="Target Release" HeaderText="Target Release" />
          <telerik:GridBoundColumn DataField="Target Date" HeaderText="Target Date" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
      </MasterTableView>
      <ClientSettings>
        <ClientEvents OnCommand="function() {}" OnGridCreated="OnGridCreated" OnDataBound="OnDataBound" />
      </ClientSettings>
    </sg:IPGrid>
  </div>
</div>

 

Javascript:

function OnGridCreated(sender, args) {
  $find('<%= loadPanel.ClientID%>').show('selected');
}
function OnDataBound(sender, args) {
  $find('<%= loadPanel.ClientID%>').hide('selected');
}
$(function () {
  $.ajax({
    type: "POST",
    url: "/pageinformation/styleguide.api/internaldocgeneratorws.asmx/getworkitemcollection",
    data: '{ workItems: ' + JSON.stringify(deployment.WorkItems) + ' }',
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    cache: true
  }).done(function (data) {
    var tableView = $find('<%= rgSelected.ClientID %>').get_masterTableView();
    tableView.set_dataSource(JSON.parse(data.d));
    tableView.dataBind();
  }).fail(function (jqXHR, textStatus) {
    // If there is no communication between the server, show an error
    $find('<%= MessageBox.ClientID %>').addError(jqXHR.responseJSON.Message, false);
  });
});
Marin Bratanov
Telerik team
 answered on 18 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?