﻿<?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 - PreRender</title><link>http://www.intersoftsolutions.com/Community/Tags/PreRender/</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>Button in a column - Creates a null reference exception in prerender</title><link>http://www.intersoftsolutions.com/Community/Tags/PreRender/</link><pubDate>Fri, 06 Apr 2012 15:42:25 GMT</pubDate><dc:creator>beyti77</dc:creator><category>WebGrid</category><category>column</category><category>PreRender</category><category>Button</category><category>databinding</category><category>null reference</category><description>&lt;p&gt;I have a button in a webgrid as a column and its code like below:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn runat="server" Bound="False" ButtonAutoPostback="true" 
 Width="40px" EditType="NoEdit" ButtonText="qweqwe" DataMember="Id" DefaultValue="0"
 ButtonImage="/Style/Images/tick.png"  ColumnType="ButtonImage" NewRowEditType="NoEdit" 
 ButtonPostbackMode="OnTheFly" Name="Id"&amp;gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt; As you can see, I've tried all I can think of but none of them helped me.&lt;/p&gt;
&lt;p&gt;Problem is, when I create a new item in the grid; the item is created successfully but after the creation; a pop-up screen appears and says a null reference exception is occured in the data binding to the webgrid.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When I remove the column, everything is ok.&lt;/p&gt;
&lt;p&gt;And when I don't remove the column, eventhough it says a null ref exception is occured; after a refreshing the screen; I can see the item is created successfully and including the newly created item, every item is bind into the webgrid.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I would love if anybody could diect me into the right direction.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Info: The binding and the creation is by default and no override is included and linqdatasource is used for the data and given as a DataSourceId="dsSomething" in ascx page.&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebGrid crashes when scrolling with column freeze and setting a column hidden</title><link>http://www.intersoftsolutions.com/Community/Tags/PreRender/</link><pubDate>Fri, 08 Jan 2010 08:43:18 GMT</pubDate><dc:creator>Eric</dc:creator><category>freeze</category><category>crash</category><category>visible</category><category>column</category><category>hiding</category><category>scroll</category><category>PreRender</category><category>InitializeDataSource</category><category>InitializeLayout</category><description>&lt;p&gt;&lt;span style="font-size: 13px; color: #000000"&gt;&lt;span style="font-size: 13px; color: #000000"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;I experience that WebGrid crashes, when the user horizontally scrolls. This happens only when I set the first column to be frozen. It also only happens when I set some columns to hidden (Visible=false).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;Attached is a simple sample in VB.NET for that (remove the .txt in the file names). Simplified, the sample contains:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;An aspx file with the WebGrid "grdResult" and the columns "Description", "X1", "X2",..."X9"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&amp;lt;FreezePaneSettings AbsoluteScrolling="true" ActiveFrozenColumns="1" MaxFrozenColumns="1" ShowSplitterLine="False" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;In the aspx.vb code file there is a handler for InitializeDataSource which adds some static data to show, so that the grid is not empty&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;In the handler PreRender I change some column titles (from X1 to C1 etc.) and set two columns to Visible=False&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;When scrolling, it crashes with: "Microsoft JScript runtime error: 'parentElement' is null or not an object" (Break/Continue/Ignore). The debugger then stands on this JScript code: "var v1d119 =vfcb75.parentElement" (and vfcb75 is null).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;I believe this is a bug in WebGrid. We are using the newest&amp;nbsp;WebGrid 6.0.7200.218 and Framework 3.0.5000.705 and the users use&amp;nbsp;Internet Explorer 6 to browse the page.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you confirm that this is a bug? If yes, will there be a hotfix available soon? Is there any workaround except not to use freezing or hiding?&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>