Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to pass data to an Ajax Service using Telerik Rad Grid Binding?
    primarykey
    data
    text
    <p>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? </p> <p>The Mark up looks something like this:</p> <pre><code> &lt;telerik:RadGrid ID="radGridProviders" runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="false" &gt; &lt;PagerStyle Mode="NextPrevAndNumeric" /&gt; &lt;MasterTableView TableLayout="Fixed" &gt; &lt;Columns&gt; ... &lt;/Columns&gt; &lt;/MasterTableView&gt; &lt;ClientSettings&gt; &lt;Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"&gt; &lt;/Scrolling&gt; &lt;DataBinding Location="/AjaxServices/SearchService" SelectMethod="GetProductData" SelectCountMethod="GetProductCount" StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows" /&gt; &lt;ClientEvents OnCommand="showLoadingPanel" OnDataBound="hideLoadingPanel" /&gt; &lt;/ClientSettings&gt; &lt;/telerik:RadGrid&gt; </code></pre> <p>I want to pass to my Service a search string and/or other customer parameters How do I do it with the RadGrid Binding?</p> <p>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.</p> <pre><code>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&lt;SearchProviders_Result&gt; GetProductData(int startRowIndex, int maxRows) { // brevity brevity } } </code></pre> <p>Any Suggestions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload