I use a commercially available product to generate web-based database applications (CodeOnTime.com). This product produces standard ASPX web projects that are compatible with Visual Studio. Customising the application is done by adding UserControls (.ASCX) and placing custom code/web controls therein. I have found that WebDataGrids and WebHierarchical data grids do not display when placed within such a UserControl. (I can create a simple .ASPX project from scratch and it does work OK but when used in conjunction with generated applications it fails.) I have tried setting the grid's visibility etc but to no avail. if you use the browser inspection facility it is possible to manually switch off the visibility=hidden and display=none css tags and the grid becomes visible. But how could I do this reliably in code?
I have attached a link to a Visual Studio 12 project that exhibits this behaviour. Please edit the connectionString [SDS] in Web.Config to point to a copy of the Northwind database and run - The GridTest page shows as empty but it actually contains a WebDataGrid that remains hidden. As far as I can tell there are no JavaScript (or any other) errors whilst loading/running the project and I am at a loss to know how to fix this. (VS 2012, IG 13.1.2107 .net 4.5)
Please advise how to get this working.
I have an active licence for IG.Ultimate.
Kind regards,
Paul Shearing
Hello Paul,
Thank you for posting in the community. I am currently looking into that matter for you. I will keep you posted on my progress and I will get back to you soon with more information or questions for you.
Please feel free to continue sending updates to this case at any time.
Thanks Vasya,
It is good to know that this is under investigation.
Just for interest I have tried implementing the Infragistics myMail sample within a control in a generated app and it appears that the IG Explorer bar and WebDataTree do not suffer from the same visibility problem as the WebDataGrid (see attached image). No mail items can be seen in the right because they are held within a WebDataGrid - inspection with the browser shows that it is there but hidden.
Paul
Thank you very much for your sample
I managed to reproduce your issue. I noticed that not only the grid but it`s child tables and rows have gotten a display:none or visibility:hidden in their inline styles.
Since this is not something that the grid does by default so I further investigated the master page and noticed that you are using a custom control there: MenuExtender.
Upon removing it from the page the grid was displayed without any problems.
What I can suggest is to investigate the custom control`s code and check if perhaps it`s enforcing those inline styles to the tables and rows in the page.
I am attaching your sample project as well where I have commented the MenuExtender control and the WebDataGrid is displayed on the page
I am still following your case and I was wondering did you manage to identify the root cause of this issue?
If you have any additional questions regarding this issue please do not hesitate to contact me.