I am using Html.Telerik().Grid
in my asp.net MVC 3 project where in i have a Grid (Telerik grid) which sows searchResults, User has facility to click on these rows to see more information of the particular row in a new page which is opened in the new window. I am also using Jquery to handle the onrowselected
event and i am doing a post to the controller to fetch the details.
Jquery code:
function onRowSelected(e) {
var grid = $(this).data('tGrid');
//populate criteria here
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: //"some url",
data: //data to controller,
dataType: "text json",
success:
function (data, textStatus) {
if (data != "Success") {
ShowError(data);
}
else {
window.location.href = //"redirect";
}
}
}
});
I dont want the user to select anything else on the page and want him to just wait until the details are loaded i.e. once he selects a row he should not be able to select any other row in the grid. Any way of achieving this.