Greetings,
I have a page with a radGrid and a button that allow my user to download a file, now if I use the RadAjax Manger to configure
the button to an AJAX style postback this will confict with the file download -- if you do this you get Parse Error, as you
are messing w/ the server response :)
This page also has a grid that shows the data that is being downloaded with a status column that displays if 'exported' process
has been completed. i.e..(the user downloaded the file)
Here's my goal, user clicks to the get the download, and aspx server side code sub. rgRequests_NeedDataSource is invoked causing the RadGrid to be updated
I am using client side jQuery.to update the text lables on the page with out issue,
but I do not understand how to invoke a server side code (asp.net).
So if anyone has done this, please a post a solution or a suggestion!
Thanks,
Dave Gilden MCSD / Ft. Worth, Tx
I have a page with a radGrid and a button that allow my user to download a file, now if I use the RadAjax Manger to configure
the button to an AJAX style postback this will confict with the file download -- if you do this you get Parse Error, as you
are messing w/ the server response :)
This page also has a grid that shows the data that is being downloaded with a status column that displays if 'exported' process
has been completed. i.e..(the user downloaded the file)
Here's my goal, user clicks to the get the download, and aspx server side code sub. rgRequests_NeedDataSource is invoked causing the RadGrid to be updated
I am using client side jQuery.to update the text lables on the page with out issue,
but I do not understand how to invoke a server side code (asp.net).
// this is wired up to a ASP:BUTTON -- onClick event
function upDatePAMLabel(label,grid) {
$("#" + label).html("There are no User IDs waiting to be exported");
// AJAX Call back here to refresh the grid
// $("#" + grid).ajax("PortalAdminManager.aspx", "", "rgRequests_NeedDataSource","");
/* does nothing!
$.ajax({
type: "POST",
url: "PortalAdminManager.aspx/rgRequests_NeedDataSource",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
alert(msg)
}
});
*/
// brute force method - to refresh the grid
//
force a reload so that Request Status is updated in the grid
$(document).ready(function () {
setTimeout(function () { window.location.href = "./PortalAdminManager.aspx"; }, 1000);
});
}
So if anyone has done this, please a post a solution or a suggestion!
Thanks,
Dave Gilden MCSD / Ft. Worth, Tx