WebGrid crashes when scrolling with column freeze and setting a column hidden

35 replies. Last post: September 8, 2010 1:10 PM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Eric Member

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).

Attached is a simple sample in VB.NET for that (remove the .txt in the file names). Simplified, the sample contains:

  • An aspx file with the WebGrid "grdResult" and the columns "Description", "X1", "X2",..."X9"
  • <FreezePaneSettings AbsoluteScrolling="true" ActiveFrozenColumns="1" MaxFrozenColumns="1" ShowSplitterLine="False" />
  • 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
  • In the handler PreRender I change some column titles (from X1 to C1 etc.) and set two columns to Visible=False

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).

I believe this is a bug in WebGrid. We are using the newest WebGrid 6.0.7200.218 and Framework 3.0.5000.705 and the users use Internet Explorer 6 to browse the page.

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?

All times are GMT -5. The time now is 4:44 PM.
Previous Next