﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Thu, 08 Oct 2009 19:04:25 GMT</pubDate><dc:creator>p.belanger@cgi.com</dc:creator><category>webgrid 7.0</category><description>&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt"&gt;&lt;span style="font-size: 10pt; color: navy; font-family: arial"&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt"&gt;&lt;span style="font-size: 10pt; color: navy; font-family: arial"&gt;I have modified the code has described. BindDataSet2Grid is now a function that returns a dataset.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;But when I right click on a cell, I get en error message instead of the expected pop-up menu.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;In debug mode I found the error comes from an Intersoft Script (enclosed). The Height values is huge and cannot be displayed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;To what height does this refer to and can I ininialize it in my code to avoid this error.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;/span&gt;&lt;/span&gt; I have found the solution in an other thread(&lt;a href="http://www.intersoftpt.com/Community/WebGrid/Doctypes-and-Upgrading-WebGrid/"&gt;http://www.intersoftpt.com/Community/WebGrid/Doctypes-and-Upgrading-WebGrid/&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt"&gt;&lt;/p&gt;
&lt;p&gt;"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."&lt;/p&gt;</description></item><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Tue, 06 Oct 2009 04:31:01 GMT</pubDate><dc:creator>Dicky</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;Hi Pierre,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;There are 2 important information that you need to aware:&lt;br /&gt;1. You need to use OnInitialize_DataSource event to bind the data to WebGrid.&lt;br /&gt;2. You need to use OnPrepareDataBinding event to define WebGrid Column programatically.&lt;/p&gt;
&lt;p&gt;So based on your sample. You can try these ways:&lt;/p&gt;
&lt;p&gt;1. Change your method named &lt;span style="font-size: 13px; "&gt;BindDataSet2Grid to return DataSet. So in that way you can bind your data OnInitialize_DataSource event using this way:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;Private Sub wgBusinessUnits_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles wgBusinessUnits.InitializeDataSource
     e.DataSource = BindDataSet2Grid()
End Sub&lt;/pre&gt;
&lt;p&gt;2. You need to call SetGridColumns() method onPrepareDataBinding event instead of &lt;span style="font-size: 13px; "&gt;OnInitializeLayout event. Here the sample code:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt; 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&lt;/pre&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Dicky&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Fri, 02 Oct 2009 16:04:05 GMT</pubDate><dc:creator>p.belanger@cgi.com</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;&lt;span style="font-size: 11pt"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Wed, 30 Sep 2009 13:26:09 GMT</pubDate><dc:creator>p.belanger@cgi.com</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;With WebGrid 4.0 we did not get these errors. I have attached an example of a web page.&lt;/p&gt;
&lt;p&gt;As anyone a suggestion or solution to propose?&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;</description></item><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Tue, 29 Sep 2009 23:19:09 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Could you please provide us with more information in order to repro the issue? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;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.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Error when right clicking on any header field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-right-clicking-on-any-header-field/</link><pubDate>Tue, 29 Sep 2009 16:31:16 GMT</pubDate><dc:creator>p.belanger@cgi.com</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;We have upgraded our WebGrid from 4.0 to 7.0.&lt;/p&gt;
&lt;p&gt;When I right click on any of the hearder fields of the grid, I get an page error instead of the pop-up menu.&lt;/p&gt;
&lt;p&gt;The error comes from a script genereted from Intersoft Script Optimizer V1.5 &amp;#43; I (file exclosed)&lt;/p&gt;
&lt;p&gt;The debugger shows the  following text as the error: &lt;span style="font-size: 13px"&gt;&lt;strong&gt;height = va7e90 &amp;#43; "px";&lt;/strong&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The value of va7e90 is 0xFFFFFFF8. &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;I am using all the latest dll from WebGrid and WebUI Framework: WebGrid 7 is build 304 and WebUIFramework 3 build 703.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thanks&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>