Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Ajax refresh List page using button

$
0
0
Hi
Is it possible to implement ajax Grid refresh event while using custom button (like in popup add/edit event ajax refresh list page)
I have added
var message = result["txt"] + " !!!";
if(alert (message)){}
else    window.location.reload(); 


but this reload the page altogether, not the grid alone.

if I use the following code in button on client after area it shows the result in server error feedback.
var message = result["txt"] + " !!!";
ctrl.setMessage(message);

Runner.runnerAJAX(Runner.pages.getUrl(pageObj.tName, pageObj.pageType)+"?a=return",
     pageObj.ajaxBaseParams,
   function(respObj){
      pageObj.pageReloadHn.call(pageObj, respObj)
     });



how can i modify the above to achieve the grid refresh using button

Viewing all articles
Browse latest Browse all 2586

Trending Articles