Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:31:45+00:00 2026-06-17T12:31:45+00:00

I have a RadGrid in my ASP.Net web form. Now i want to bind

  • 0

I have a RadGrid in my ASP.Net web form.
Now i want to bind this on client-side through a AjaxEnabledWCFService.
After all the implementations done it seems the data is being retrieved through the response
but rather than showing it in the grid it shows an messge like “Method not allowed.”.

I could not able to find the actual reason behind this error, and what is the cause for dat not being populated.

Here are the details of my implementations :-
I have added the particular service to the Script manager like below :-

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
         <Services>
                <asp:ServiceReference Path="~/services/CustomerListService.svc" />
         </Services>
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>

Then added the service to the RadGrid ClientEvents – DataBindings tag like below :-

 <DataBinding SelectMethod="GetCustomers" Location="~/services/CustomerListService.svc" 
                     SortParameterType="Linq" FilterParameterType="Linq">
                </DataBinding> 

I have a service named orderListService with DataContract as order,
ServiceContract as GetCustomers() as below codes :-

Ex:

[ServiceContract(Namespace = “”)]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class CustomerListService
{

[OperationContract]
public List<Customer> GetCustomers()
{
    CustomerData CustData = new CustomerData();
    System.Data.DataTable dt = CustData.GetCustomersList(1, 1, "");

    List<Customer> Customerist = new List<Customer>();//Here Customer is DataContract
    foreach (System.Data.DataRow dr in dt.Rows)
    {
        Customer cust = new Customer();
        SetPropertiesFromOrderRow(cust, dr);//set all the property values from DataRow to Order
        CustomerList.Add(cust);
    }

    return CustomerList;
}

}

The settings in the configuration file are like below :-

   <endpointBehaviors>
    <behavior name="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior">
     <enableWebScript />
    </behavior>
   </endpointBehaviors>

  <services>
   <service name="ClientSideBindingTest.services.CustomerListService">
    <endpoint address="" behaviorConfiguration="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior"
     binding="webHttpBinding" contract="ClientSideBindingTest.services.CustomerListService" />
   </service>
  </services>

Please let me know if anyone having any suggestions here and also i need to know how to pass the parameter to the service method to
get the values as per the parameter supplied.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:31:45+00:00Added an answer on June 17, 2026 at 12:31 pm

    I got the solution for my question here is the details described below :-

    Reason : The main reason behind this “Method not allowed.” could be caught after i enabled the tracing feature of the WCF by setting the configuration in the web.config file.
    What it traced i am describing here :-

    Description : I had a DateTime type field when i was assigning value from DB to this field NULL values are avoided to be assigned so for the fields not assigned a default value of ’01/01/0001 00:00:000′ is being automatically assigned to the field. But when this field is being passed to the jSon this date is the out of range of the json Date fields, which is causing the actual error here and it throws that exception and service breaks there.

    Solution : The solution is simple, just i needed to make the DateTime field as Nullable so that it will take the NULL rather than assigning a default out of range value to the field and this fixed my issue. Thanks to WCF tracing facility which helped me to track the exact error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Telerik RadGrid in my asp.net web form Like Below : MasterTableView
i have a Telerik RadGrid in a ASP.Net page, and i want handle CRUD
I have grid in my ASP.NET page (actualy it's Telerik RadGrid). There is GridButtonColumn
I have problems binding both a telerik RadGrid and a plain vanilla ASP.NET GridView
Hi I have a RadGrid in my asp.net application and basically I am being
I have a query in regards to a Telerik RadGrid in ASP.NET. I have
I'm really new to asp.net and Telerik... I have a RadGrid with filtering. I
I have an asp.net web application. The application reads data from an xml. The
I have a RadGrid with an asp Link Button. I want to highlight the
I have a RadGrid in my ASP.Net app and I have set the AllowPaging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.