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
I have an hierarchical grid with AllowAddNew=False in the LayoutSettings. For some very strange reason I still can add a new row in the child table. How can I disable this also in the child table?
// Staffan
Hi Staffan,
The code is almost similar to C#. You can add the code in WebGrid1_InitializeLayout events in server-side with the snippet below:
Protected Sub WebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.LayoutEventArgs) Handles WebGrid1.InitializeLayout e.Layout.AllowAddNew = ISNet.WebUI.WebGrid.AddNew.No End Sub
Please let me know if this code has appropriate with your need or not.
Regards,
Julia
I tried to create a hierarchical grid that set AllowAddNew to true in Properties and then set it to false in the server side. But it all works fine which I can't add any row, both in the parent or in the child table as seen in the printscreen unallowaddnew.png of attachment below. May I know the version of WebGrid that you use?
Also, please don't forget to apply the latest hotfix before you running you project. If you have used the latest version, can you attach me your running sample that can replicate your issue? And a screenshot of the issue would be very helpful.
I'm using 6.0.7200.218.
Update: it works when setting AllowAddNew through LayoutSettings in the aspx file. How can it be set from code-behind VB?// Staffan
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