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

  • Home
  • SEARCH
  • 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 6610191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:48:31+00:00 2026-05-25T19:48:31+00:00

I have a Telerik RadGrid in which I’m implementing custom paging binding to a

  • 0

I have a Telerik RadGrid in which I’m implementing custom paging binding to a Ajax Service. How do you pass data like a Search String to the Web Method?

The Mark up looks something like this:

 <telerik:RadGrid ID="radGridProviders" runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="false" >
    <PagerStyle Mode="NextPrevAndNumeric" />
    <MasterTableView TableLayout="Fixed" >
        <Columns>
            ...
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True">
        </Scrolling>
        <DataBinding Location="/AjaxServices/SearchService" SelectMethod="GetProductData" SelectCountMethod="GetProductCount" StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows" />
        <ClientEvents OnCommand="showLoadingPanel" OnDataBound="hideLoadingPanel" />
        </ClientSettings>
    </telerik:RadGrid>

I want to pass to my Service a search string and/or other customer parameters How do I do it with the RadGrid Binding?

My service that responds to the requests is an ASP.NET MVC Controller. The service responds fine to requests from the browser. My problem is that I don’t know how to pass custom data using the Telerik binding features.

public class SearchServiceController : Controller
{
    private ISearchController _searchController;

    public SearchServiceController(ISearchController searchController)
    {
        _searchController = searchController;
    }

    public int GetProductCount()
    {
        int returnValue = 0;

        // brevity brevity

        return returnValue ;
    }

    public List<SearchProviders_Result> GetProductData(int startRowIndex, int maxRows)
    {

           // brevity brevity

    }
}

Any Suggestions?

  • 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-05-25T19:48:31+00:00Added an answer on May 25, 2026 at 7:48 pm

    This is what I found with a little help from Telerik Support.

    In the ClientSetting of the RadGrid add a method to the ClientEvents OnDataBinding. My name method name is OnClientDataBinding in this example

    Then create the client method:

                // This OnClient DataBinding builds the arguments uses to call the 
                // Ajax Service used to retrieve that when needed.
                function OnClientDataBinding(sender, args) {
    
                    // get data source location, method name and arguments
                    var dataSourceLocation = args.get_location();
                    var selectMethodName = args.get_methodName();
                    var methodArguments = args.get_methodArguments();
    
                ...  
    

    I actually modified the sortExpression and fitlerExpresion and these are passed as an Array.

            // construct arguments for Ajax Service
            var myMethodArguments = new Object();
            myMethodArguments.startRowIndex = methodArguments.startRowIndex;
            myMethodArguments.maximumRows = methodArguments.maximumRows;
            myMethodArguments.sortExpression = sortExpression;
            myMethodArguments.filterExpression = filterExpression;
            myMethodArguments.myParam1 = "David";
            myMethodArguments.myParam2 = 14926;
    
            args.set_methodArguments(myMethodArguments);
        }
    

    Then create your Service Controller Method something like:

    public JsonResult GetCustomerSearchResults(int startRowIndex, int maximumRows, string sortExpression, FilterExpression[] filterExpression, string myParam1, int myParam2)
        {
            IEnumerable results;
    
            ... fill your Data and Count. 
    
            return Json(new { Data = results.ToList(), Count = totalNumberOfRows });
        }
    

    FilterExpression[] is an object that I created for my use. This is not a Telerik object.

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

Sidebar

Related Questions

I have a Telerik's RadGrid which has 2 columns like this: <Columns> <telerik:GridBoundColumn HeaderText=AirlineCode
I have a telerik:RadGrid that is bound to a SQL Data Source. One of
I have problems binding both a telerik RadGrid and a plain vanilla ASP.NET GridView
I have a problem with a telerik RadGrid where the paging section is not
I have Telerik RadGrid with a custom edit form. In my edit form there
I have a RadGrid from Telerik with a GridClientSelectColumn column. When the user checks
I currently have a fairly long LINQ statement which pulls data from two tables:
I have a Telerik RadGrid and have a very simple Hierarchical dataset that I
I have an aspx page with a Telerik RadGrid right on the page. Then
i am currently displaying data in the radgrid controls of telerik, i want to

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.