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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
paul danielPosted Jan 6, 2010, 6:45 AM
Go through this link
http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx
Thanks,
Paul daniel
Lalit MPosted Jan 5, 2010, 2:11 AM
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
Rekha SinghPosted Jan 5, 2010, 1:52 AM
http://www.dotnetcurry.com/ShowArticle.aspx?ID=255