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
I add new records programmatically.
I have found no way to hide "new row" if AllowAddNew = AddNew.Yes.
Perhaps it is a new feature request (e.g. NewRowVisible)?
Regards
Michael
Hi Handy
If you set AllowFilter = Filter.Yes you must write following code:
WebGrid1.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLROW).childNodes[0].childNodes[3].style.display = "none";
Your second tip always works:
WebGrid1.RootTable.GetNewRow().style.display = "none";
Thank you.
You will need to get new row element and set display none style. I suggest you to put the code OnAfterInitialize client side evet.
function WebGrid1_OnAfterInitialize() { var grid=ISGetObject("WebGrid1"); grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLROW).childNodes[0].childNodes[1].style.display="none"; }
Hope this helps.
Regards,Handy
Nothing happens! Display is already set to none!
Maybe the wrong Element?
Hi Michael,
Weird, it works on me. Or if you want it more simple, you can add the code below. Hope this helps.
function WebGrid1_OnAfterInitialize(controlId) { var WebGrid1 = ISGetObject(controlId); WebGrid1.RootTable.GetNewRow().style.display = "none"; return true; }
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