This question is locked. New answers and comments are not allowed.
Hi there.
I have below problem with grid, wonder someone can help?
Here the scenario:
User click into a button, an ajax request is sent to controller, and a json data response is sent back.
I want use that response data to fill into a grid.
Here is my sample code:
The button:
Javascript code:
Any helps?
Thanks in advance.
I have below problem with grid, wonder someone can help?
Here the scenario:
User click into a button, an ajax request is sent to controller, and a json data response is sent back.
I want use that response data to fill into a grid.
Here is my sample code:
The button:
<input type="button" onclick="onClick()" value = "Click me"/>Javascript code:
<script type="text/javascript"> function onClick() { $.post("/Home/_AjaxTestSearching", { isDelete: false }, function (responseData) { var grid = $("#ListGrid").data("tGrid"); // something to do with responseData here // to set it into grid }); }</script>Any helps?
Thanks in advance.