Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
196 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
948 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
105 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
120 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
197 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
1 answer
83 views
Hi,
How to set the page number in pdf export.?
Princy
Top achievements
Rank 2
 answered on 07 Nov 2013
1 answer
168 views
Hi,
i have used GridClientSelectColumn with multi row selection. The selection works fine, but if i click any other row all oder selected rows are deselected and only the current row is selected. How to overcome this? When i select a row i want only that to be unchecked. Please help.
Princy
Top achievements
Rank 2
 answered on 07 Nov 2013
1 answer
108 views
Hi Team,
I am using Telerik RadProgressBar. I would like to know is there is any way to change the CurrentOperationText during the radAsyncUpload. 

I tried the following

  function updateUploadVideoProgress(source, eventArgs) {
            // alert("Hi2");
            var progressData = eventArgs.ProgressData();
            progressData.CurrentOperationText = "Step 1: Uploading files to the server.."

            //source.Localization-CurrentFileName="Data";

        }

But CurrentOperationText is not replicated in the Progress Bar. Let me know if you have any solutions for this. 

Thanks in advance for the reply

Regards, 
Mohan
Hristo Valyavicharski
Telerik team
 answered on 07 Nov 2013
1 answer
177 views
 
Hi I am very new to Scheduler control can anyone tell me how do i get start and end time  and also date  when i select the  the time say 4 pm in the code behind and then wheni save and when i try to retrieve it i am getting different time  this is how i am doing can any one tell me what is the problem
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <div class="exampleContainer">
        <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" DayStartTime="08:00:00"
            DayEndTime="18:00:00" TimeZoneOffset="03:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
            
            DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
            DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
            DataReminderField="Reminder" DayView-ReadOnly="False">
            <AdvancedForm Modal="true"></AdvancedForm>
            <TimelineView UserSelectable="false"></TimelineView>
            <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
            <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
            <Reminders Enabled="true"></Reminders>
        </telerik:RadScheduler>
    </div>

protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
        {
            Appointments.Add(new AppointmentInfo(e.Appointment));
            DateTime start = e.Appointment.Start;
            DateTime end = e.Appointment.Start.AddMinutes(((RadScheduler)sender).MinutesPerRow);
            string startdate = e.Appointment.Start.ToString();
        }

Kate
Telerik team
 answered on 07 Nov 2013
3 answers
308 views
Hi,

I have a simple radgrid project which all works fine from visual studio, my problem is when I publish it I lose the skin, i.e. the screen appears in text only. The skin DLL is in the bin folder so not sure whats gone wrong here. Anyone seen this before?

Thanks

Mick
Venelin
Telerik team
 answered on 07 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?