iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
After spending alot of time developing this grid and getting the sporadic "Unable to communicate with server." error message, then reading all the posts relating to this error, we have had to call it a day and accept that this bug will not go away.
Irrespective of the advice offered on the posts and the different methodologies of binding the grid, this sporadic error still pops up from time to time. Our clients have lost faith in the application.
How can the grid be configured to either refresh the page completely when this error dialog is thrown or at least let us create a nice user friendly notification, (override 'Unable to communicate with server.')
David
Hello,
Yes, you can change this error message into others message. To do that, you could use OnUnhandledError client side event.
“Unable to communicate with server.” error will returns empty string in OnUnhandledError client side event. I suggest you to use following conditional statement in order to handle the error.
<script type="text/javascript"> <!-- function WebGrid1_OnUnhandledError(controlId, action, lastRequestObject, errorString) { var WebGrid1 = ISGetObject(controlId); if (errorString == "") { // Put your error handling script in here. } return true; } --> </script>
You could find more information about this event in WebGrid’s documentation.
Hope this helps. Thank you.
Regards,
Hans K
// Put your error handling script in here
Hello,Let me show the example format code in OnUnhandledError() function.Here’s the script below:
function WebGrid1_OnUnhandledError(controlId, tblName, lastRequestObject, errorString) { var WebGrid1 = ISGetObject(controlId); //delay function before call errorBox() function window.setTimeout(function () { errorBox(); }, 50); return true; } function errorBox() { // Get the object of ErrorMessage's Window var errorMessage = document.getElementById("wg_ErrorMsg"); var box = errorMessage.parentNode.parentNode.parentNode.parentNode.parentNode.style; // Set the size of ErrorMessage's Window box.width = "500px"; box.height = "500px"; // Set your own ErrorMessage's text errorMessage.innerText = "Your Own Error Message"; document.getElementById("tdStatIcon_WebGrid1").style.display = "none"; document.getElementById("tdStat_WebGrid1").childNodes[0].childNodes[0].nodeValue = " "; }
Hope this helps. Thank you.Regards,Hans.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname