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
We have upgraded our WebGrid from 4.0 to 7.0.
When I right click on any of the hearder fields of the grid, I get an page error instead of the pop-up menu.
The error comes from a script genereted from Intersoft Script Optimizer V1.5 + I (file exclosed)
The debugger shows the following text as the error: height = va7e90 + "px";
The value of va7e90 is 0xFFFFFFF8.
I am using all the latest dll from WebGrid and WebUI Framework: WebGrid 7 is build 304 and WebUIFramework 3 build 703.
Thanks
I have modified the code has described. BindDataSet2Grid is now a function that returns a dataset.
But when I right click on a cell, I get en error message instead of the expected pop-up menu.
In debug mode I found the error comes from an Intersoft Script (enclosed). The Height values is huge and cannot be displayed.
To what height does this refer to and can I ininialize it in my code to avoid this error.
I have found the solution in an other thread(http://www.intersoftpt.com/Community/WebGrid/Doctypes-and-Upgrading-WebGrid/)
"Based on functionality, Yes, our WebGrid 7 has supported XHTML doctype but for UI there could be some issues. That's why it still does not fully support XHTML. Our developer have a plan to fully support it by gathering all layout issue. I have created and forwarded a WI to our developer regarding layout issue. Please also reply into the other thread to help me in replicating your issue."
Could you please provide us with more information in order to repro the issue?
I attached a simple sample of WebGrid bind to AccessDataSource control. The sample uses Northwind.mdb file as its data source. Please make any necessary changes to the sample so that it replicates the issue and then have the sample send back to us for further investigation.
The example you provided works but everything is in the aspx page. In my case everything is done programmatically, either in vb or javascript. Even the columns are genereted programmatically.
With WebGrid 4.0 we did not get these errors. I have attached an example of a web page.
As anyone a suggestion or solution to propose?
Thanks for your help.
I assume you are looking at this upgrade issue. Since the columns were generated programmatically in our WebGrid 4.0 could it be the programming of columns is differant in WebGrid 7.0. Any clarification would be appriciated.
Hi Pierre,
It should be no problem to create WebGrid Columns programmatically. I have checked your code and found some uncommon ways to bind the grid and generate WebGrid Column programmatically.
There are 2 important information that you need to aware:1. You need to use OnInitialize_DataSource event to bind the data to WebGrid.2. You need to use OnPrepareDataBinding event to define WebGrid Column programatically.
So based on your sample. You can try these ways:
1. Change your method named BindDataSet2Grid to return DataSet. So in that way you can bind your data OnInitialize_DataSource event using this way:
Private Sub wgBusinessUnits_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles wgBusinessUnits.InitializeDataSource e.DataSource = BindDataSet2Grid() End Sub
2. You need to call SetGridColumns() method onPrepareDataBinding event instead of OnInitializeLayout event. Here the sample code:
Protected Sub wgBusinessUnits_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WG1.PrepareDataBinding If Not Page.IsPostBack Then SetGridColumns(wgBusinessUnits) End If End Sub
Use an event not properly sometimes can break the life cycle process, I'm affraid this is what happen on your scenario. Hope this can help you to solve the issue.
Best Regards,
Dicky
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