Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
91 views

On page load I am getting two errors:
 The server method GetResources / GetAppointments Failed.
Also if I try to insert I get "InsertAppointment" failed.

I am using .NET MVC 4
The Scheduler is being put on the page via a partial control.

 

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
 
 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
 
<form id="SchedulerForm" runat="server">
 
 
 <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
 
 
 
</telerik:RadStyleSheetManager>
 
  
 
<asp:ScriptManager runat="server" ID="sm1"></asp:ScriptManager>
 
  
 
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
 
 
 
<AjaxSettings>
 
 
 
<telerik:AjaxSetting AjaxControlID="Scheduler">
 
 
 
<UpdatedControls>
 
 
 
<telerik:AjaxUpdatedControl ControlID="Scheduler" />
 
 
 
</UpdatedControls>
 
 
 
</telerik:AjaxSetting>
 
 
 
</AjaxSettings>
 
 
 
</telerik:RadAjaxManager>
 
 
 
<telerik:RadScheduler runat="server" ID="Scheduler"
 
 
 
ClientIDMode="Static"
 
 
 
StartInsertingInAdvancedForm="True"
 
 
 
AllowEdit="true" AllowInsert="true"
 
 
 
>
 
 
 
 
 
 <WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ClientSide"/>
 
 
 
<AdvancedForm Modal="true" />
 
 
 
</telerik:RadScheduler
 
 
 
>

 

 



The path to the webservice works.

 

<system.serviceModel>
 
 
 
 <bindings>
 
 
 
 <basicHttpBinding>
 
 
 
 <binding name="BasicHttpEndpointBinding">
 
 
 
 <security mode="TransportCredentialOnly">
 
 
 
 <transport clientCredentialType="Windows" />
 
 
 
 </security>
 
 
 
 </binding>
 
 
 
 </basicHttpBinding>
 
 
 
 </bindings>
 
 
 
 <services>
 
 
 
 <service behaviorConfiguration="AuthenticationServiceTypeBehaviors"
 
 
 
name="DOTTReportsWebViewer.Models.SchedulerWcfService">
 
 
 
 <endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
 
 
 
name="BasicHttpEndpoint" contract="DOTTReportsWebViewer.Models.SchedulerWcfService" />
 
 
 
 </service>
 
 
 
 </services>
 
  
 
 <behaviors>
 
 
 
 <serviceBehaviors>
 
 
 
 <behavior name="AuthenticationServiceTypeBehaviors">
 
 
 
 <serviceMetadata httpGetEnabled="true" />
 
 
 
 <serviceDebug includeExceptionDetailInFaults="false" />
 
 
 
 </behavior>
 
  
 
 </serviceBehaviors>
 
 
 
 </behaviors>
 
  
 
 </system.serviceModel>
 
 
 
 
 
 
 
  
 
</form
 
 
 
>

 

 

 

 

 

If I change :

<WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode

 

 

="ClientSide"/>
to:

<WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ServerSide"/>

I get a 401 error

Bozhidar
Telerik team
 answered on 08 Nov 2013
1 answer
55 views
I have noticed a strange behavior with the autocomplete box. I have an autocompletebox bound to an asp sql datasource and I have set an empty message to it. If I copy some text and paste into the input, the text gets added to the empty message.

Please suggest a solution.
Josephine
 
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2013
1 answer
61 views
Telerik Support:

Can somebody help me to point out few shared web host/partners that supports radcontrols and offer full trust level for running a radcontrols web application?

Thanks
Freddy
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2013
2 answers
129 views

I have switched to using absolute positioning via CSS classes for most of my page layouts.


I have a problem when working with various control wizards, more likely an issue with VS 2012, but I think other Telerik customers may have the same problem and hopefully know the solution. See attachment for an example of the HTML Designer window.



In the example, the menu appears at the top, as expected. The grid jammed-up against it, and attempting to select the Item Editor just selects the master page zone.



Previously with flow layout, the controls were spaced so that access to the item editor / wizard buttons were easy to locate and click.

Tomica
Top achievements
Rank 2
 answered on 07 Nov 2013
5 answers
380 views
Hello,

I am working on this telerik radchart and I am having some issues to customize the Y axis. I would like to set the scale manually from 0 to 110% of biggest value.
So I have
radchart.PlotArea.YAxis.AutoScale = false;<br>radchart.PlotArea.YAxis.MinValue = 0;<br>radchart.PlotArea.YAxis.MaxValue = (int) ((double)_maxAmount * 1.1);<br>radchart.PlotArea.YAxis.Step = 500;

        
The result is that my Y labels values don't match the major tick (see attached picture).

Could you please tell me what is not going right?
Thank you.
Greg
Top achievements
Rank 1
 answered on 07 Nov 2013
1 answer
168 views
Greetings!

I'm having trouble binding the RadAutoCompleteBox to an external web service (ie one residing on a different domain).

I notice that when the AutoCompleteBox calls a local web service, it uses POST. But it seems to change that to a GET when the web service is on a different domain, which means that the call is being rejected when I try it to both an .asmx and a .svc.

I've tested this repeatedly and note that when I change from http://localdomain.com/service.asmx to http://otherdomain.com/service.asmx then Chrome's Developer Tools are reporting that the service call changes from POST to GET.

I've tried experimenting with getting the .asmx and .svc methods to support GET, but that's causing other problems, so my first approach is to see if it's possible to force a POST, which seems to work.

My questions are:

  1. Is it possible to support POST for external web service calls, or would that require JSONP (which I gather is not supported)?
  2. If not (or perhaps, either way), is there any way to connect to an external web service .asmx (for example) and - if so - could you post a small demo of it? When I try connecting to an external .asmx via GET, I'm getting an error 500 because the ASMX isn't liking the URL sent by the RadAutoCompleteBox (Request format is unrecognized for URL unexpectedly ending in '/GetResourcePickerAutoCompleteSearchResults'.)

Please note that by "external web service", I do control that web service and can set it up any way required.

Thanks!

FRASER TUSTIAN
Nencho
Telerik team
 answered on 07 Nov 2013
5 answers
901 views
Hi,
    I'm using a RadGrid with a popup form for editing and inserting records based on the excellent Edit Form types demo. Everything I used from the demo works fine but I ran into a problem with validation. Unlike the demo I'm using some controls that can only be validated using a custom validator function (RadEditor and RadRating).
 
At first, I put the functions in the user control (ascx file) but this is obviously not the thing to do because I got an error when the functions were called saying that they were undefined.

I moved the functions to the parent aspx file (with the gridview in it) and now the functions are recognised OK. The snag no is that I don't know how to access the values I want to validate. I had already found out that the standard approach (args.value) doesn't work because the value isn't sent to the function from these controls. I found the following example on a forum somewhere but it only works when the script is in the ascx file.

$find("<%= rr_Q1a.ClientID %>").get_value()


What syntax do I need to gain client-side access the values of the controls that are in the ascx file from the parent aspx file? or is there another way I should do this?
Geoff
Top achievements
Rank 1
 answered on 07 Nov 2013
5 answers
90 views
Hi,

Any idea why the following clientscript always returns 0?
var oExplorer = $find("<%= RadFileExplorer1.ClientID %>");
    alert(oExplorer.get_listView().get_currentPageIndex());

Thanks,

Marc
Vessy
Telerik team
 answered on 07 Nov 2013
2 answers
110 views

Hi: 

How do I rename a PivotGridAggregateField header so it doesn’t says “Sum of ‘Datafield’”?

I am using ASP.NET 4.5, Windows 8, Internet Explorer 10.0.9200.16721, Telerik v.2013.2.717.45, C#.

The provided help will be appreciated.

 

Thanks!

Jose



Jose
Top achievements
Rank 1
 answered on 07 Nov 2013
7 answers
165 views
Using a pretty simplistic RadRotator (v 2011.1.315.35), I have text-only items where you see one at a time, scrolling up.  Everything looks fine as the items rotate, but when I mouseover an item, the alignment of the item shifts up and bunches the text (if it happens to wrap).  What is the deal?  This was noticed in both IE8 and FF.

<telerik:RadRotator ID="radrotAlerts" runat="server" Skin="Hay" Width="650px" Height="50px" ItemWidth="650" ItemHeight="50"
    ScrollDirection="Up" ScrollDuration="1000" FrameDuration="3000" RotatorType="AutomaticAdvance">
    <ItemTemplate>
        <div style="width:650px; height:50px; vertical-align:middle; text-align:left;">
            <asp:Label ID="lblAlert" runat="server" Visible='<%# string.IsNullOrEmpty(Eval("AlertUrl").ToString()) ? true : false %>'>
                <%# Eval("AlertText") %>
            </asp:Label>
        </div>
    </ItemTemplate
</telerik:RadRotator>

Attached are screenshots, one how it looks when mouse is NOT over item, one when it is.
Slav
Telerik team
 answered on 07 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?