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
if hide statusbar, error in script:
textEl.innerHTML =this.GetString("CommonText/PendingChanges").replace("{0}",count);
Microsoft JScript runtime error: 'undefined' is null or not an object
Hi,
As a fellow member, Yudi has said.
When there are some changes happen on WebGrid. The BatchUpdate will access the status bar which is contains of all information such as Yudi has mentioned above.
Since you hide the status bar, the BatchUpdate couldn't find all of those buttons and text, that is why it throws an error.
Hope you understand my explanation.
Thank you and have a nice day.
Best regards,
Niven Prasetya
Hello Pro,
I assume you are using a BatchUpdate when the issue occured. This will happen because it will trigger the functions inside the status bar such as Apply All Changes and Undo All Changes. When you hide the status bar, there will be nothing to trigger and will give an exception.
Use the following workaround to prevent the error.
function WebGrid1_OnInitialize(controlId) { var WebGrid1 = ISGetObject(controlId); document.getElementById("dvStatus_WebGrid1").style.display = "none"; return true; }
this means never hide status bar in webgrid designer?
Here is my opinion about why does hiding status bar on WebGrid with BatchUpdate enabled may lead to a Javascript exception.
When BatchUpdate feature enabled, WebGrid will has its status bar filled with some buttons and text related to the BatchUpdate feature, like “x pending change(s).” text; Accept All Changes button; Undo All Changes button; and Review Pending Changes button.
Those buttons and text will be accessed and manipulated through scripts. When the status bar is hiden, the Javascript function that is used to access and manipulate those objects will generate exception since it cannot find the required object.
Hope this helps.
I can't understand why WebGrid maitenance submit by itself.
Usually, grid is also a element in form, and will save changes with others in the same sumbit, the same transaction.
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