BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Xander,
Query: “Is there any way to do a refresh without the gray overlay and spinning timer wheel?”
We can hide the waiting popup during grid refresh alone and not during other operations such as paging, grouping etc. with the help of actionBegin event.
The actionBegin event will be triggered before every action begins. Please refer the following code snippet.
$("#Grid").ejGrid({ dataSource: dataManger, actionBegin: "showHidePopup", allowPaging: true, . . . . });
function showHidePopup(args) { if(args.requestType =="refresh") $('#' + this._id + '_WaitingPopup').css("visibility", "hidden"); else { $('#' + this._id + '_WaitingPopup').css("visibility", "visible");
} }
function refresh() { $("#Grid").ejGrid("refreshGridContent",true); }
|
In the showHidePopup function, if the requestType is refresh we set visibility as hidden for waitingpopup otherwise set as visible. Now the waitingpopup will not appear during grid refresh.
For your convenience we have created a simple sample please find the attached sample.
Please let us know if you require further assistance.
Regards,
Madhu Sudhanan. P
Hi Xander,
Thanks for using Syncfusion Products.
Query: Is there any other way to access the popup element or this._id using either the main grid object or the passed args parameter?
The this._id is used to get the id of the current Grid element. We are not able to get the id of the grid from the args parameter. But we can get the id of the grid element from the grid object. Please refer the below code snippet.
Code snippet:
var gridObj = $("#Grid").data("ejGrid"); //get the grid object;
var gridId = gridObj._id; //get the id of the grid from the grid object;
$('#' + gridObj._id + '_WaitingPopup').css("visibility", "hidden");
For your convenience we have modified the previously updated sample and the sample can be downloaded from the attachment.
Please let us know if you have any queries.
Regards,
Maithiliy K
Hi Xander,
Thanks for your update.
Please get back if you require further assistance. We will be glad to assist you.
Regards,
Madhu Sudhanan. P