Dear frdz,
I need to bind grid at client side using with JQuery,
is any one help me ..
replying me as soon as possible
thnks with regards
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rekha SinghRank #1,571 · 1K reputationPosted Jan 4, 2010, 8:52 PM EST
http://www.dotnetcurry.com/ShowArticle.aspx?ID=255
Lalit MRank #1,186 · 1.5K reputationPosted Jan 4, 2010, 9:11 PM EST
Using this simple method you can call any page method in ASP.NET Page or WebService method:
function executeMethod(location, methodName, methodArguments, onSuccess, onFail) {
$.ajax({
type: "POST",
url: location + "/" + methodName,
data: methodArguments,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: onSuccess,
fail: onFail
});
}
Here is an example also how to use JSON2 JavaScript library to serialize any JavaScript object to string:
function getRequestData(tableView) {
return JSON.stringify({
"startIndex": tableView.get_currentPageIndex(),
"maximumRows": tableView.get_pageSize(),
"sortExpression": tableView.get_sortExpressions().toString(),
"filterExpression": tableView.get_filterExpressions().toDynamicLinq()
});
}
And to use these two to bind RadGrid you can simply call:
executeMethod("WebService.asmx", "GetData", getRequestData(tableView), updateGrid);
The result: Blazing fast and responsive AJAX DataGrid:
reference link
more details
paul daniel189 reputationPosted Jan 6, 2010, 1:45 AM EST
Go through this link
http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx
Thanks,
Paul daniel